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:
CaS 2005-09-30 13:12:27 +00:00
parent e3376a47cc
commit ed7974b477
2 changed files with 17 additions and 0 deletions

View file

@ -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.

View file

@ -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");