(CURRENT_FORMAT_VERSION): New macro.
(DEFAULT_FORMAT_VERSION): Changed from 0 to 1.
([BinaryCStream -_initForReadingFromPostSignatureStream:
withFormatVersion:]): New method.
([BinaryCStream -initForWritingToStream:swithFormatVersion:]): New
method.
(WRITE_SIGNED_TYPE0): Renamed from WRITE_SIGNED_TYPE.
(WRITE_SIGNED_TYPE1): New macro.
(WRITE_SIGNED_TYPE): New macro for choosing between them.
(READ_SIGNED_TYPE0): Renamed from READ_SIGNED_TYPE.
(READ_SIGNED_TYPE1): New macro.
(READ_SIGNED_TYPE): New macro for choosing between them.
(WRITE_UNSIGNED_TYPE0, WRITE_UNSIGNED_TYPE1, WRITE_SIGNED_UNTYPE,
READ_UNSIGNED_TYPE0, READ_UNSIGNED_TYPE1, READ_UNSIGNED_TYPE):
Likewise.
([BinaryCStream -encodeValueOfCType:at:withName:name]): Don't use
`unsigned' as part of the argument to the *_UNSIGNED_TYPE macros,
because the macros now include that themselves.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2047 72102866-910b-0410-8b05-ffd578937521
instead of assignment to get the floats and doubles from the `at:'
argument.
([BinaryCStream -decodeValueOfCType:at:withName:]): Likewise, for
setting the values. (Reported by M. Decugis
<mds@sepgifbr.sep.de.edf.fr>.)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1902 72102866-910b-0410-8b05-ffd578937521
<sys/types.h> if we don't. (Reported by Gregor Hoffleit
<flight@mathi.uni-heidelberg.de>.)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1819 72102866-910b-0410-8b05-ffd578937521
of trying to assign to (_TYPE*)(BUFFER+1).
(WRITE_UNSIGNED_TYPE): Likewise.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1595 72102866-910b-0410-8b05-ffd578937521
exponent as a short, not an int.
([BinaryCStream -decodeValueOfCType:at:withName:]): Likewise, decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1291 72102866-910b-0410-8b05-ffd578937521
Don't autorelease the malloc'ed pointer here; thus the behavior is
analogous to decoding an object: it gives you a reference, it is the
callers responsibility to free it.
([BinaryCStream -decodeValueOfCType:at:withName:]): [_C_DBL]: Fix
typo. Use mantissa1, not mantissa2 twice.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1289 72102866-910b-0410-8b05-ffd578937521
(FLOAT_FACTOR): New macro.
(WRITE_SIGNED_TYPE): Take new first argument, the pointer for the
data.
(READ_SIGNED_TYPE): Likewise.
(WRITE_UNSIGNED_TYPE): Likewise.
(READ_UNSIGNED_TYPE): Likewise.
([BinaryCStream -encodeValueOfCType:at:withName:]): [_C_FLT]: Use new
scheme, based on frexp() to turn a float into a series of ints.
[_C_DBL]: Likewise.
([BinaryCStream -decodeValueOfCType:at:withName:]): [_C_FLT]: Likewise
to match.
[_C_DBL]: Likewise.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1286 72102866-910b-0410-8b05-ffd578937521
Autorelease the malloc'ed char pointer. Before memory was leaking.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1277 72102866-910b-0410-8b05-ffd578937521
Write the string with the host LENGTH, not the network LENGTH!
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1256 72102866-910b-0410-8b05-ffd578937521