···181181 (default [Bigarray.Array1.dim b - off]). *)
182182183183val to_bigarray: t -> buffer
184184-(** [to_bigarray t] converts a {!t} into a {!buffer} Bigarray, using
184184+(** [to_bigarray t] converts a {!t} into a {!type:buffer} Bigarray, using
185185 the Bigarray slicing to allocate a fresh array that preserves
186186 sharing of the underlying buffer. *)
187187···606606(** [string ~off ~len str] is the subbuffer of [str] that starts at position [off]
607607 (defaults to [0]) and stops at position [off + len] (defaults to
608608 [String.length str]). [str] is fully-replaced by an fresh allocated
609609- {!Cstruct.buffer}.
609609+ {!type:buffer}.
610610611611 @raise Invalid_argument if [off] or [off + len] are not positions of [str].
612612*)
···621621 [buffer]. *)
622622623623val start_pos : t -> int
624624-(** [start_pos cs] is [cs]'s start position in the base {!Cstruct.buffer}. *)
624624+(** [start_pos cs] is [cs]'s start position in the base {!type:buffer}. *)
625625626626val stop_pos : t -> int
627627-(** [stop_pos cs] is [cs]'s stop position in the base {!Cstruct.buffer}. *)
627627+(** [stop_pos cs] is [cs]'s stop position in the base {!type:buffer}. *)
628628629629val length : t -> int
630630(** Returns the length of the current cstruct view. Note that this
+4-4
vendor/opam/cstruct/lib/cstruct_cap.mli
···3535 The functions that retrieve bytes ({!get_uint8} etc.) require a [read]
3636 capability, functions mutating the underlying buffer ({!set_uint8} etc.)
3737 require a [write] capability. Allocation of a buffer (via {!create}, ...)
3838- returns a [t] with read and write capabilities. {!ro} drops the write
3939- capability, {!wo} drops the read capability. The only exception is
3838+ returns a [t] with read and write capabilities. {!val:ro} drops the write
3939+ capability, {!val:wo} drops the read capability. The only exception is
4040 {!unsafe_to_bigarray} that returns the underlying [Bigarray.t].
41414242 Accessors and mutators for fixed size integers (8, 16, 32, 64 bit) are
···516516517517 {ul
518518 {- if [rev] is [false] (default), [l] is at least [min] and at most
519519- [max] consecutive [sat] satisfying initial bytes of [cs] or {!empty}
519519+ [max] consecutive [sat] satisfying initial bytes of [cs] or {!is_empty}
520520 if there are no such bytes. [r] are the remaining bytes of [cs].}
521521 {- if [rev] is [true], [r] is at least [min] and at most [max]
522522- consecutive [sat] satisfying final bytes of [cs] or {!empty}
522522+ consecutive [sat] satisfying final bytes of [cs] or {!is_empty}
523523 if there are no such bytes. [l] are the remaining bytes of [cs].}}
524524525525 If [max] is unspecified the span is unlimited. If [min] is unspecified
+1-2
vendor/opam/cstruct/lib/cstruct_sexp.mli
···1717(** Sexpression serialisers for {!Cstruct.t} values *)
18181919type buffer = Cstruct.buffer
2020-(** [buffer] is an alias for the corresponding {!Cstruct.buffer} type *)
2020+(** [buffer] is an alias for the corresponding {!type:Cstruct.buffer} type *)
21212222val sexp_of_buffer : Cstruct.buffer -> Sexplib.Sexp.t
2323(** [sexp_of_buffer b] returns the s-expression representation of the raw memory buffer [b] *)
···3535val t_of_sexp : Sexplib.Sexp.t -> t
3636(** [t_of_sexp s] returns a fresh {!Cstruct.t} that represents the
3737 s-expression previously serialised by {!sexp_of_t}. *)
3838-