Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page