···5656 Cstruct.sub t off len
5757[@@inline]
58585959+let sub_copy t ~off ~len =
6060+ Cstruct.sub_copy t off len
6161+[@@inline]
6262+5963let unsafe_to_bigarray = Cstruct.to_bigarray
60646165let concat vss =
+8
vendor/opam/cstruct/lib/cstruct_cap.mli
···146146147147 @raise Invalid_argument if the offset exceeds [t] length. *)
148148149149+val sub_copy : 'a t -> off:int -> len:int -> rdwr t
150150+(** [sub_copy t ~off ~len] is a new copy of [sub t ~off ~len],
151151+ that does not share the underlying buffer of [t].
152152+ The returned value has read-write capabilities because it doesn't
153153+ affect [t].
154154+155155+ @raise Invalid_argument if the offset exceeds [t] length. *)
156156+149157val shift : 'a t -> int -> 'a t
150158(** [shift t len] returns a proxy which shares the underlying buffer of [t]. The
151159 returned value starts [len] bytes later than the given [t]. The returned