Skip to main content

Some serialisation functions.

I use these functions to serialise and de-serialise non-negative integers of arbitrary size and run length encoded block data.

The integers are encoded as octets in big-endian order, with the high bit indicating that more octets follow.

  • get_bs(bs, offset=0): collect an integer from the bytes bs at the specified offset

  • get_bsdata(bs, offset=0): collect a run length encoded data block from the bytes bs at the specified offset

  • get_bsfp(fp): collect an integer from the binary file fp

  • put_bs(n): return the bytes encoding of the supplied integer n

  • put_bsdata(data): return the bytes run length encoding of the supplied data block

Metadata

Release files for cs.serialise 20160828

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs.serialise 20160828
File Size Uploaded Provenance Actions
cs.serialise-20160828.tar.gz 3.7 kB Without provenance Details for cs.serialise-20160828.tar.gz

Release files / cs.serialise-20160828.tar.gz

Download URL cs.serialise-20160828.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
31788d9011221af2e7d1cb93d6a39f08543f506a9ab92e9c7eb626ddcc6a11cd
BLAKE2b-256 checksum
How to use checksums
a04612d6acd2b7c266432155408b69263f0da244b726c39765a5c68f474fbd98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for cs.serialise 20160828

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page