RAA - bytestream/x

bytestream / x

Short description: Very simple data-serialization
Category: Library/Hacks
Status: stable
Created: 2005-07-04 10:45:30 GMT
Last update: 2005-07-04 10:45:30 GMT
Owner: toki (Projects of this owner)
Homepage: http://handgranat.se/lab/
Download: http://handgranat.se/lab/ruby/bytestream.rb
License: BSD-type
Dependency:
Requires: utils/x Misc, handy utils
Description:

ByteStream is a simple helper-class for serializing unsigned integers, strings and arrays of unsigned integers.
Instead of packing by hand, this class offer a stream-like interface.

The data is packed as follows:
integer -> packed according to the supplied type
string -> integer (length) + literal string of bytes
array -> interger (length) + integer (size of element) + elements

Edit this project (for project owner)

back to RAA top