mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-21 02:41:07 +00:00
Optimise -getClients:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@21759 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e3376a47cc
commit
ed7974b477
2 changed files with 17 additions and 0 deletions
|
@ -216,6 +216,11 @@
|
|||
*/
|
||||
- (NSMutableDictionary*) dictionary;
|
||||
|
||||
/**
|
||||
* Optimised mechanism for retrieving all objects.
|
||||
*/
|
||||
- (void) getObjects: (id*)buf;
|
||||
|
||||
/**
|
||||
* Returns the value of the named field.<br />
|
||||
* The field name is case insensitive.
|
||||
|
|
12
SQLClient.m
12
SQLClient.m
|
@ -272,6 +272,18 @@ inline unsigned SQLClientTimeTick()
|
|||
return d;
|
||||
}
|
||||
|
||||
- (void) getObjects: (id*)buf
|
||||
{
|
||||
id *ptr;
|
||||
unsigned pos;
|
||||
|
||||
ptr = ((void*)&count) + sizeof(count);
|
||||
for (pos = 0; pos < count; pos++)
|
||||
{
|
||||
buf[pos] = ptr[pos];
|
||||
}
|
||||
}
|
||||
|
||||
- (id) init
|
||||
{
|
||||
NSLog(@"Illegal attempt to -init an SQLRecord");
|
||||
|
|
Loading…
Reference in a new issue