([Decoder -decodeBytes:count:withName:name]): Update for new argument

types, and verify read count.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1224 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-03-19 20:33:28 +00:00
parent 8c2fc92144
commit 9a02a76077

View file

@ -295,14 +295,16 @@
withName:namePtr];
}
- (void) decodeBytes: (char *)b
count: (unsigned*)c
- (void) decodeBytes: (void *)b
count: (unsigned)c
withName: (id <String> *) name
{
int actual_count;
/* xxx Is this what we want?
It won't be cleanly readable in TextCStream's. */
[cstream decodeName: name];
[[cstream stream] readBytes: b length: c];
actual_count = [[cstream stream] readBytes: b length: c];
assert (actual_count == c);
}
- (unsigned char) decodeTag