memcpyversion Documentation on ocaml.org

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.

Tags org:mirage
Authoryallop@gmail.com
LicenseMIT
Published
Homepagehttps://github.com/yallop/ocaml-memcpy
Issue Trackerhttp://github.com/yallop/ocaml-memcpy/issues
Maintaineryallop@gmail.com
Available!(os = "win32")
Dependencies
Conflicts
Source [http] https://github.com/yallop/ocaml-memcpy/archive/0.3.0.tar.gz
sha256=fd8921e6546aa7d80a2c73a94aabfb8ccb5aa63fd69e3c58d9b87eacfa7dfd22
md5=85428d6731d6a3b1e329c387515a0cce
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/memcpy/memcpy.0.3.0/opam
No package is dependent