package bytesrw
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Composable byte stream readers and writers for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
bytesrw-0.4.0.tbz
sha512=9b307eb85c99a38faad50a82e5fae652758548a527ce6db3dd09a21096b19a860e812a5a10bd30d8cc9b885a6482c068fe6ab3b653ca6bfb640293fe190025ee
doc/CHANGES.html
v0.4.0 2026-08-22 Zagreb
- Add
Bytes.Writer.writes_to_string - Add
Bytes.Slice.{take,drop}_first_or_eod(#11). - Deprecate
Bytes.Slice.{take,drop,break}in favor ofBytes.Slice.{take_first,drop_first,cut_first}to align on the stdlib's newStringterminology (#11). - Fix
Bytes.Slice.compare. The last byte of equal length slices was not compared (#14). Thanks to Anil Madhavapeddy for the report. - Fix
Bytes.Reader.of_slicewhen the given slice does not start at 0. Thanks to Thomas Gazagnaire for report (#13). Bytesrw_sysrandom: fix headers for musl libc (alpine.) (#7)
v0.3.0 2025-11-04 Zagreb
- Add the
Bytesrw_sysrandommodule for operating system provided cryptographically secure pseudorandom byte streams and an entropy primitive. - Add the optional
Bytesrw_crypto.Psamodule for low-level cryptographic operations on byte slices. These are thin and safe bindings to the PSA Crypto API specification currently provided by the TF-PSA-Crypto C library distributed with Mbed TLS. - Add the optional
Bytesrw_cryptomodule for higher-level cryptographic operations implemented overBytesrw_crypto.Psa. Mostly hashing for now. Use this if you need SHA-3 hashes. - Add the optional
Bytesrw_tlsa module for TLS encrypted streams and the needed X.509 certificate management (including system lookups for trusted CAs). The backend is provided by the Mbed TLS C library. - Add
Bytesrw_unix.bytes_writer_of_socket_fdwhich shutdowns the fd in the send direction when the end of stream is written. - Add
Bytes.Slice.last. - Review
Int_valvsLong_valin C bindings. AffectsBytesrw_blake3,Bytesrw_md,Bytesrw_xxh,Bytesrw_zlib,Bytesrw_zstd
v0.2.0 2025-07-25 Zagreb
- Fix
Bytesrw_xxhash.Xxh64.{to_hex,pp}. Leading zeros were not being printed (#5). - Change unuseful signature of
Slice.break: do not returnNoneif any ofSlice.takeorSlice.dropdoes. Simply return the result of both operations. - Fix wrong bound checks in
Slice.{sub,make}[_or_eod]. The functions now behave likeBytes.subas far as indexing is allowed. Thanks to Adrián Montesinos González for the report and suggesting the fix (#4). bytesrw.*libraries are made to exportbytesrw.
v0.1.0 2024-11-28 Zagreb
First release.
Supported by a grant from the OCaml Software Foundation.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page