BinaryIO

Usage

use BinaryIO;

or

import BinaryIO;

The BinaryIO module provides a BinarySerializer and BinaryDeserializer that implement a simple binary IO format.

record BinarySerializer
const endian: IO.ioendian = IO.ioendian.native
proc serializeValue(writer: _writeType, const val: ?t) throws
record BinaryDeserializer
const endian: IO.ioendian = IO.ioendian.native
proc init(endian: IO.ioendian = IO.ioendian.native)
proc deserializeType(reader: _readerType, type readType): readType throws
proc deserializeValue(reader: _readerType, ref val: ?readType): void throws