Crate gospel

Crate gospel 

Source
Expand description

A crate for incremental reading and writing of binary files.

In addition to convenient zero-copy reading, the gospel::read module supports seeking, forking, and testing for testing for magic numbers. It also comes with the separate gospel-dump crate for writing hex dumps, which is useful when analyzing an unknown format.

The gospel::write module supports the dual of seeking, namely delayed writes with labels.

Modulesยง

dump
Pretty nice printing of hex dumps.
read
Utilities for reading binary data from slices.
write
Utilities for writing binary data to a Vec<u8>, with support for delayed labels.