([CStream -encodeWithName:valuesOfCTypes:...]): New method.

([CStream -decodeWithName:valuesOfCTypes:...]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@805 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-01-24 15:06:04 +00:00
parent 69dca9a986
commit 3fde73e804

View file

@ -172,6 +172,40 @@ id CStreamSignatureMismatchException = @"CStreamSignatureMismatchException";
/* Encoding/decoding indentation */
- (void) encodeWithName: (id <String>) name
valuesOfCTypes: (const char *) types, ...
{
va_list ap;
[self encodeName: name];
va_start (ap, types);
while (*types)
{
[self encodeValueOfCType: types
at: va_arg(ap, void*)
withName: NULL];
types = objc_skip_typespec (types);
}
va_end (ap);
}
- (void) decodeWithName: (id <String> *)name
valuesOfCTypes: (const char *)types, ...
{
va_list ap;
[self decodeName: name];
va_start (ap, types);
while (*types)
{
[self decodeValueOfCType: types
at: va_arg (ap, void*)
withName: NULL];
types = objc_skip_typespec (types);
}
va_end (ap);
}
- (void) encodeIndent
{
/* Do nothing */