graphix-package-pack 0.9.0

A dataflow language for UIs and network programming, pack package
Documentation
1
2
3
4
5
6
7
8
9
10
use sys::io;

/// Decode a value from packed binary bytes or stream.
val read: fn(input: [bytes, Stream<'a>]) -> Result<'b, [`PackErr(string), `IOErr(string), `InvalidCast(string)]>;

/// Encode a value to packed binary bytes.
val write_bytes: fn(value: Any) -> Result<bytes, `PackErr(string)>;

/// Encode a value and write to a stream.
val write_stream: fn(stream: Stream<'a>, value: Any) -> Result<null, [`PackErr(string), `IOErr(string)]>;