Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a deprecation on Cstruct.len (use Cstruct.length instead) #284

Merged
merged 1 commit into from
Nov 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/cstruct.mli
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ val blit_to_string: t -> int -> bytes -> int -> int -> unit
val memset: t -> int -> unit
(** [memset t x] sets all the bytes of [t] to [x land 0xff]. *)

val len: t -> int
val len: t -> int [@@deprecated "len is deprecated, you should use length instead."]
(** Returns the length of the current cstruct view. Note that this
length is potentially smaller than the actual size of the underlying
buffer, as the [sub] or [set_len] functions can construct a smaller view. *)
Expand Down