Skip to content

Composable byte stream readers and writers for OCaml

License

Notifications You must be signed in to change notification settings

dbuenzli/bytesrw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bytesrw – Composable byte stream readers and writers for OCaml

Bytesrw extends the OCaml Bytes module with composable, memory efficient, byte stream readers and writers compatible with effect based concurrency.

Except for byte slice life-times, these abstractions intentionally separate away ressource management and the specifics of reading and writing bytes.

Bytesrw distributed under the ISC license. It has no dependencies.

Optional support for compressed and hashed bytes depend, at your wish, on the C zlib, libzstd, blake3, libmd, xxhash and libraries.

Homepage: https://erratique.ch/software/bytesrw/

Installation

Bytesrw can be installed with opam

opam install bytesrw

# Compression support
opam install bytesrw conf-zlib conf-zstd

# Hashing support
opam install bytesrw conf-libblake3 conf-libmd conf-xxhash

If you don't use opam consult the opam file for build instructions.

Documentation

The documentation can be consulted online or via odig doc bytesrw.

Questions are welcome but better asked on the OCaml forum than on the issue tracker.

Examples

A few examples can be found in the test directory.

About

Composable byte stream readers and writers for OCaml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published