memcpy

Author yallop@gmail.com
License MIT
Homepage https://github.com/yallop/ocaml-memcpy
Issue Tracker http://github.com/yallop/ocaml-memcpy/issues
Maintainer yallop@gmail.com
Dependencies
& ctypes >= 0.4.0
ocamlbuild
ocamlfind
ounit
Available ocaml-version >= "4.01.0"
Published May 19, 2016
Source [http] http://github.com/yallop/ocaml-memcpy/archive/0.1.0.tar.gz
4ba882a985d936633ec8bf0e382aa632
Statistics Installed 4 times in last month.
Edit https://github.com/ocaml/opam-repository/tree/master/packages/memcpy/memcpy.0.1.0/opam

Safe and efficient copying between blocks of memory.

There are several ways of storing and accessing blocks of memory in an OCaml program, including

  • bytes and string values for mutable and immutable strings that reside in the OCaml heap
  • bigarray values for reference-counted blocks that reside in the OCaml heaps
  • Ctypes ptr values that can be used to address arbitrary addresses using typed descriptions of the memory layout.
  • Ctypes array values that provide bounds-checked access to ptr-addressed memory.

The Memcpy module provides functions for safely and efficiently copying blocks of memory between these different representations.

No package is dependent