mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
([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:
parent
8c2fc92144
commit
9a02a76077
1 changed files with 5 additions and 3 deletions
|
@ -295,14 +295,16 @@
|
||||||
withName:namePtr];
|
withName:namePtr];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) decodeBytes: (char *)b
|
- (void) decodeBytes: (void *)b
|
||||||
count: (unsigned*)c
|
count: (unsigned)c
|
||||||
withName: (id <String> *) name
|
withName: (id <String> *) name
|
||||||
{
|
{
|
||||||
|
int actual_count;
|
||||||
/* xxx Is this what we want?
|
/* xxx Is this what we want?
|
||||||
It won't be cleanly readable in TextCStream's. */
|
It won't be cleanly readable in TextCStream's. */
|
||||||
[cstream decodeName: name];
|
[cstream decodeName: name];
|
||||||
[[cstream stream] readBytes: b length: c];
|
actual_count = [[cstream stream] readBytes: b length: c];
|
||||||
|
assert (actual_count == c);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (unsigned char) decodeTag
|
- (unsigned char) decodeTag
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue