Page 1 of 1

libBinConvert

Posted: Tue Oct 30, 2007 3:50 pm
by Mark Smith
LibBinConvert is a library that provides a wrapper around the binaryEncode and binaryDecode functions. It aims to provide descriptively named functions that are easier to remember than the cryptic format specifiers required by the binaryEncode/Decode functions.

It covers signed and unsigned integers of 1, 2 3, and 4 bytes, floats of 4, 8 and 10 (ieeeExtended) bytes, in either network (motorola/mac) byte-order or intel byte-order.

It also avoids bug 5315, where binaryDecode treats signed integers as unsigned on intel machines.

It also means you don't have to initialize a receiving variable for binaryDecode.

You can download it from:

http://www.futility.co.uk/futsoft/revolutionstuff.html

Best,

Mark