We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f6f105 + 855798d commit d35f6a1Copy full SHA for d35f6a1
lib/cstruct.mli
@@ -365,10 +365,10 @@ val to_hex_string : ?off:int -> ?len:int -> t -> string
365
val to_bytes: ?off:int -> ?len:int -> t -> bytes
366
(** [to_bytes ~off ~len t] will allocate a fresh OCaml [bytes] and copy the
367
contents of the cstruct starting at offset [off] (default [0]) of length
368
- [len] (default [Cstruct.len t - off]) into it, and return that bytes.
+ [len] (default [Cstruct.length t - off]) into it, and return that bytes.
369
370
@raise Invalid_argument if [off] or [len] is negative, or
371
- [Cstruct.len str - off] < [len]. *)
+ [Cstruct.length str - off] < [len]. *)
372
373
module BE : sig
374
0 commit comments