···7171 interpreted as an unsigned integer. *)
72727373val get_int16_sign_extended_le : t -> int -> int
7474-(** [get_int16_le t i] returns the two bytes in [t] starting at offset [i],
7575- interpreted as a signed integer and performing sign extension to the native
7676- word size before returning the result. *)
7474+(** [get_int16_sign_extended_le t i] returns the two bytes in [t] starting at
7575+ offset [i], interpreted as a signed integer and performing sign extension
7676+ to the native word size before returning the result. *)
77777878val set_int16_le : t -> int -> int -> unit
7979(** [set_int16_le t i v] sets the two bytes in [t] starting at offset [i] to
···8787 the value [v]. *)
88888989val get_int64_le : t -> int -> int64
9090-(** [get_int16_le t i] returns the eight bytes in [t] starting at offset [i]. *)
9090+(** [get_int64_le t i] returns the eight bytes in [t] starting at offset [i]. *)
91919292val set_int64_le : t -> int -> int64 -> unit
9393(** [set_int64_le t i v] sets the eight bytes in [t] starting at offset [i] to
···106106 dealing with raw frames, for example, in a userland networking stack. *)
107107108108val get_int16_be : t -> int -> int
109109-(** [get_int16_le t i] returns the two bytes in [t] starting at offset [i],
109109+(** [get_int16_be t i] returns the two bytes in [t] starting at offset [i],
110110 interpreted as an unsigned integer. *)
111111112112val get_int16_sign_extended_be : t -> int -> int
113113-(** [get_int16_le t i] returns the two bytes in [t] starting at offset [i],
114114- interpreted as a signed integer and performing sign extension to the native
115115- word size before returning the result. *)
113113+(** [get_int16_sign_extended_be t i] returns the two bytes in [t] starting at
114114+ offset [i], interpreted as a signed integer and performing sign extension
115115+ to the native word size before returning the result. *)
116116117117val set_int16_be : t -> int -> int -> unit
118118-(** [set_int16_be t i v] sets the eight bytes in [t] starting at offset [off] to
118118+(** [set_int16_be t i v] sets the two bytes in [t] starting at offset [off] to
119119 the value [v]. *)
120120121121val get_int32_be : t -> int -> int32
122122-(** [get_int64_be t i] returns the four bytes in [t] starting at offset [i]. *)
122122+(** [get_int32_be t i] returns the four bytes in [t] starting at offset [i]. *)
123123124124val set_int32_be : t -> int -> int32 -> unit
125125-(** [set_int32_be t i v] sets the eight bytes in [t] starting at offset [i] to
125125+(** [set_int32_be t i v] sets the four bytes in [t] starting at offset [i] to
126126 the value [v]. *)
127127128128val get_int64_be : t -> int -> int64
129129(** [get_int64_be t i] returns the eight bytes in [t] starting at offset [i]. *)
130130131131val set_int64_be : t -> int -> int64 -> unit
132132-133132(** [set_int64_be t i v] sets the eight bytes in [t] starting at offset [i] to
134133 the value [v]. *)
135134···145144 ]}
146145147146 And in fact, that's how they're implemented. Except that bounds checking
148148- performed before performing the blit. *)
147147+ is performed before performing the blit. *)
149148150149val blit : t -> src_off:int -> t -> dst_off:int -> len:int -> unit
151150val blit_from_string : string -> src_off:int -> t -> dst_off:int -> len:int -> unit
···155154156155(** {3 [memcmp]}
157156158158- Fast comparisions based on [memcmp]. Simliar to the blits, these are
157157+ Fast comparisons based on [memcmp]. Similar to the blits, these are
159158 implemented as C calls after performing bounds checks.
160159161160 {[
···259258260259(** {3 [memcmp]}
261260262262- Fast comparisions based on [memcmp]. Simliar to the blits, these are not
261261+ Fast comparisons based on [memcmp]. Similar to the blits, these are not
263262 memory safe and are implemented by the same C call:
264263265264 {[