package bytesrw
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=fd1ee852cf9d8c3b1800d4927c18453b18385b49354fb3ea71ae08f1ca640741c0594863c5db339432da55a9ee42e4fdbc8d6ef0afe29a375aac1ec6cee11c0b
Description
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/
Tags
bytes streaming zstd zlib gzip deflate sha1 sha2 compression hashing utf xxhash blake3 org:erratiquePublished: 29 Nov 2024
README
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.
Acknowledgments
A grant from the OCaml Software Foundation helped to bring the first public release of bytesrw
.
Dependencies (4)
-
topkg
build & >= "1.0.3"
-
ocamlbuild
build
-
ocamlfind
build
-
ocaml
>= "4.14.0"
Dev Dependencies
None
Used by
None
Conflicts (1)
-
conf-zstd
< "1.3.8"