Some serialising functions, now mostly a thin wrapper for the cs.binary functions.
Project description
Some serialising functions, now mostly a thin wrapper for the cs.binary functions.
Function get_bs(data, offset=0)
Read an extensible byte serialised unsigned int from data
at offset
.
Return value and new offset.
Continuation octets have their high bit set. The value is big-endian.
If you just have a bytes instance, this is the go. If you're
reading from a stream you're better off with cs.binary.BSUint
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cs.serialise-20190103.tar.gz
(1.9 kB
view hashes)