package cstruct

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = private {
  1. buffer : buffer;
  2. off : int;
  3. len : int;
}
val of_bigarray : ?off:int -> ?len:int -> buffer -> t
val create : int -> t
val check_bounds : t -> int -> bool
type byte = char
val byte : int -> byte
val byte_to_int : byte -> int
type bytes = string
type uint8 = int
type uint16 = int
type uint32 = int32
type uint64 = int64
type ipv4 = int32
val ipv4_to_string : ipv4 -> string
type ipv6 = int64 * int64
val ipv6_to_string : ipv6 -> string
val get_char : t -> int -> char
val get_uint8 : t -> int -> uint8
val set_char : t -> int -> char -> unit
val set_uint8 : t -> int -> uint8 -> unit
val sub : t -> int -> int -> t
val shift : t -> int -> t
val copy : t -> int -> int -> string
val blit : t -> int -> t -> int -> int -> unit
val blit_from_string : string -> int -> t -> int -> int -> unit
val blit_to_string : t -> int -> string -> int -> int -> unit
val len : t -> int
val set_len : t -> int -> t
val add_len : t -> int -> t
val split : ?start:int -> t -> int -> t * t
val to_string : t -> string
val hexdump : t -> unit
val debug : t -> string
module BE : sig ... end
module LE : sig ... end
val lenv : t list -> int
val copyv : t list -> string
type !'a iter = unit -> 'a option
val iter : (t -> int option) -> (t -> 'a) -> t -> 'a iter
val fold : ('b -> 'a -> 'b) -> 'a iter -> 'b -> 'b
OCaml

Innovation. Community. Security.