Ocamlnet 3 Reference Manual : Netsys_types

# Module Netsys_types

    module Netsys_types: sig .. end

Types for all Netsys modules

    type memory = (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t

We consider 1-dimensional bigarrays of chars as memory buffers. They have the useful property that the garbage collector cannot relocate them, i.e. the address is fixed. Also, one can mmap a file, and connect the bigarray with shared memory.