package core_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type nonrec t = t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val to_string_hum : ?max_lines:Base.Int.t -> ?pos:Base.Int.t -> ?len:Base.Int.t -> t -> Base.String.t

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 3 lines are always produced.

val to_sequence : ?max_lines:Base.Int.t -> ?pos:Base.Int.t -> ?len:Base.Int.t -> t -> Base.String.t 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.