···349349val to_string: ?off:int -> ?len:int -> t -> string
350350(** [to_string ~off ~len t] will allocate a fresh OCaml [string] and copy the
351351 contents of the cstruct starting at offset [off] (default [0]) of length
352352- [len] (default [Cstruct.len t - off]) into it, and return that string.
352352+ [len] (default [Cstruct.length t - off]) into it, and return that string.
353353354354 @raise Invalid_argument if [off] or [len] is negative, or
355355- [Cstruct.len t - off] < [len]. *)
355355+ [Cstruct.length t - off] < [len]. *)
356356357357val to_hex_string : ?off:int -> ?len:int -> t -> string
358358(** [to_hex_string ~off ~len t] is a fresh OCaml [string] containing
359359 the hex representation of [sub t off len]. It is therefore of length
360360 [2 * len]. This string can be read back into a Cstruct using {!of_hex}.
361361 @raise Invalid_argument if [off] or [len] is negative, or
362362- if [Cstruct.len t - off < len].
362362+ if [Cstruct.length t - off < len].
363363 @since 6.2 *)
364364365365val to_bytes: ?off:int -> ?len:int -> t -> bytes