package mstruct

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val create : int -> t
val of_string : ?allocator:(int -> Cstruct.t) -> string -> t
val to_string : t -> string
val length : t -> int
val offset : t -> int
val sub : t -> int -> int -> t
val clone : t -> t
val shift : t -> int -> unit
val index : t -> char -> int option
exception Parse_error of string
val parse_error_buf : t -> ('a, unit, string, 'b) Pervasives.format4 -> 'a
val parse_error : ('a, unit, string, 'b) Pervasives.format4 -> 'a
val hexdump : t -> unit
val hexdump_to_buffer : Buffer.t -> t -> unit
val debug : t -> string
val get_char : t -> char
val get_uint8 : t -> int
val get_be_uint16 : t -> int
val get_be_uint32 : t -> int32
val get_be_uint64 : t -> int64
val get_string : t -> int -> string
val pick_string : t -> int -> string option
val get_delim : t -> char -> (t -> 'a) -> 'a option
val get_string_delim : t -> char -> string option
val set_char : t -> char -> unit
val set_uint8 : t -> int -> unit
val set_be_uint16 : t -> int -> unit
val set_be_uint32 : t -> int32 -> unit
val set_be_uint64 : t -> int64 -> unit
val set_string : t -> string -> unit
val get_le_uint16 : t -> int
val get_le_uint32 : t -> int32
val get_le_uint64 : t -> int64
val set_le_uint16 : t -> int -> unit
val set_le_uint32 : t -> int32 -> unit
val set_le_uint64 : t -> int64 -> unit
val of_bigarray : ?off:int -> ?len:int -> Cstruct.buffer -> t
val to_bigarray : t -> Cstruct.buffer
val of_cstruct : Cstruct.t -> t
val to_cstruct : t -> Cstruct.t
val with_mstruct : Cstruct.t -> (t -> unit) -> unit
OCaml

Innovation. Community. Security.