3 unstable releases

0.2.1 Jun 19, 2021
0.2.0 Jun 19, 2021
0.1.0 Jun 17, 2021

#223 in #reading

MIT license

52KB
1K SLoC

Helpers to read binary data files in rust

Overview

The binreader crate is designed to make reading binary data easier. It is not meant to replace other wonderful crates like bytes, nom or binread, but instead is meant to work with them as a single, common interface between.

This is primarily done via the [BinReader] trait, as well as a variety of different implementations of it useful for a variety of purposes.

Feature Flags

As of right now, BinReader only has two feature flags:

  • nom-support which allows nom to parse from BinReaders.
  • memmap which supports platform-independent memory mapped files (via the memmap2 crate).

NOTE: This is still a WIP.

Dependencies

~1.5–2.4MB
~50K SLoC