From 8ba8c086a650ac4fe8a9cd9a63f5eaaee1c762b6 Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Tue, 19 Mar 1996 20:33:28 +0000 Subject: [PATCH] ([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 --- Source/Decoder.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Decoder.m b/Source/Decoder.m index 92957c07b..b0e579e93 100644 --- a/Source/Decoder.m +++ b/Source/Decoder.m @@ -295,14 +295,16 @@ withName:namePtr]; } -- (void) decodeBytes: (char *)b - count: (unsigned*)c +- (void) decodeBytes: (void *)b + count: (unsigned)c withName: (id *) 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