package bytesrw

  1. Overview
  2. Docs
Composable byte stream readers and writers for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

bytesrw-0.2.0.tbz
sha512=e3f07dbd808e152cd4b2ea5c2fa3863d4b72f7f97cfa3cd7493a3725c84f39d882042388ee47c9d6acfd30a650c21db429c8264db3d7466cad6e580308b5a2d2

doc/bytesrw/Bytesrw_hex/index.html

Module Bytesrw_hexSource

Hexadecimal tools.

See also Bytesrw.Bytes.pp_hex.

Binary strings

Sourceval to_binary_string : ?length:int -> string -> (string, string) result

to_binary_string hex converts hex, made of upper or lowercase US-ASCII hexadecimal digits to a binary string. If length is specified, errors if the result is not exactly length bytes.

Sourceval of_binary_string : string -> string

of_binary_string s is the bytes of s in lowercase US-ASCII hexadecimal digits.

Sourceval pp_binary_string : Format.formatter -> string -> unit

pp_binary_string ppf s formats the bytes of s with lowercase US-ASCII hexadecimal digits.

Sourceval check_binary_string_length : length:int -> string -> (string, string) result

check_binary_string_length ~length s checks that s has length bytes and errors otherwise.

OCaml

Innovation. Community. Security.

On This Page
  1. Binary strings