Binstream is used for serializing and deserializing basic types. It is compatible with the .NET System.IO.BinaryReader and BinaryWriter classes, and is useful as a bridge when exchanging data with the .NET framework.
stream = binstream.BinaryWriter()
stream += 1234
stream += 0.0
stream += “Hello, Binstream!”
data = stream.serial()
stream = binstream.BinaryReader(data)