package plebeia

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Arch64.BufferSource

Memory buffer

Sourcetype t
Sourceval len : t -> int

length in bytes

Sourceval to_string : t -> string
Sourceval get_char : t -> int -> char
Sourceval set_char : t -> int -> char -> unit
Sourceval get_uint8 : t -> int -> int
Sourceval set_uint8 : t -> int -> int -> unit
Sourceval get_uint16 : t -> int -> int
Sourceval set_uint16 : t -> int -> int -> unit
Sourceval get_uint32 : t -> int -> int
Sourceval set_uint32 : t -> int -> int -> unit
Sourceval get_uint64 : t -> int -> int64
Sourceval set_uint64 : t -> int -> int64 -> unit
Sourceval get_index : t -> int -> Index.t
Sourceval set_index : t -> int -> Index.t -> unit
Sourceval copy : t -> int -> int -> string

copy t off len copies the contents of the given region to a string

Sourceval blit_from_string : string -> int -> t -> int -> int -> unit
Sourceval write_string : string -> t -> int -> unit

write_string s t off is equivalent with blit_from_string s 0 t off (String.length s)

Sourceval create : int -> t

Create a buffer on memory of the specified bytes

Sourceval duplicate : t -> t

Copy the given buffer to a new buffer on memory

OCaml

Innovation. Community. Security.