We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfdb629 commit 55a0abeCopy full SHA for 55a0abe
lib/cstruct_cap.mli
@@ -177,6 +177,10 @@ val split : ?start:int -> 'a t -> int -> 'a t * 'a t
177
@raise Invalid_argument if [start] exceeds the length of [t],
178
or if there is a bounds violation of [t] via [len + start]. *)
179
180
+val copy : 'a t -> int -> int -> string
181
+[@@ocaml.alert deprecated "this is just like [to_string] without defaults, were you looking for [sub_copy]?"]
182
+(** [copy cstr off len] is the same as [Cstruct.to_string cstr ~off ~len]. *)
183
+
184
(** {2 Construction from existing t} *)
185
186
val append : 'a rd t -> 'b rd t -> rdwr t
0 commit comments