Module Core_kernel.Bigstring.Hexdump

type t = t
include sig ... end
val sexp_of_t : t ‑> Sexplib.Sexp.t
val to_string_hum : ?⁠max_lines:Core_kernel__.Import.int ‑> ?⁠pos:Core_kernel__.Import.int ‑> ?⁠len:Core_kernel__.Import.int ‑> t ‑> Core_kernel__.Import.string

to_string_hum renders t as a multi-line ASCII string in hexdump format. pos and len select a subrange of t to render. max_lines determines the maximum number of lines of hex dump to produce. If the full hex dump exceeds this number, lines in the middle are replaced by a single "..."; the beginning and end of the hex dump are left intact. In order to produce at least some readable hex dump, at least 4 lines are always produced.

val to_sequence : ?⁠max_lines:Core_kernel__.Import.int ‑> ?⁠pos:Core_kernel__.Import.int ‑> ?⁠len:Core_kernel__.Import.int ‑> t ‑> Core_kernel__.Import.string Sequence.t

to_sequence produces the lines of to_string_hum as a sequence of strings. This may be useful for incrementally rendering a large hex dump without producing the whole thing in memory. Optional arguments function as in to_string_hum.