llvm-bitcursor

Crates.iollvm-bitcursor
lib.rsllvm-bitcursor
version0.0.3
sourcesrc
created_at2021-07-21 01:31:43.844613
updated_at2022-01-28 04:39:45.641241
descriptionA no-frills bitstream cursor library for Rust
homepagehttps://github.com/woodruffw/mollusc/tree/main/llvm-bitcursor
repositoryhttps://github.com/woodruffw/mollusc
max_upload_size
id425347
size31,848
William Woodruff (woodruffw)

documentation

README

llvm-bitcursor

Crates.io Documentation

A no-frills cursor library that supports reading unaligned fields from a bitstream.

This library primarily exists to provide low-level support for the task of parsing LLVM's bitstream format. If you're looking for a general purpose bitvector handling library, try bitvec or bit-vec.

Features:

  • No-copy, all cursor state is internal
  • Support for LLVM's VBR encoding (requires the vbr feature)
  • 100% safe Rust, with #![forbid(unsafe_code)]
  • No use of unwrap, expect, or panic

Anti-features:

  • Not a general purpose bitvector/bitstring handling library
  • Probably not very fast
  • Doesn't care about bit order (always LSB-first)
Commit count: 197

cargo fmt