ASL
|
Reading and writing binary data as a stream (in big or little endian order).
Files can be read or written as binary streams with the File class in specific endianness (byte order).
Using class TextFile instead woud write those variables as text (as "30.5" because we did not add whitespace separation).
TCP sockets (class Socket) can also be read or written as binary streams:
That will call an actual socket read or write operation for each variable. Alternatively we can use binary buffers and read or write to them as streams with classes StreamBuffer and StreamBufferReader.
Classes | |
class | StreamBufferReader |
This class allows reading a memory buffer as a binary stream. More... | |
class | StreamBuffer |
This class is a buffer that can be written to as a binary stream. More... | |