Page
Library
Module
Module type
Parameter
Class
Class type
Source
MemcpyEfficient copies between various types of memory blocks: bytes, bigarrays, addresses and arrays
The types of memory are divided into two classes: safe, where the bounds can be checked, and unsafe, where no bounds information is available.
val bigarray : 
  < ba_repr : 'a
    ; bigarray : 'b
    ; carray : 'c
    ; dims : 'd
    ; element : 'e
    ; layout : Bigarray.c_layout >
    Ctypes.bigarray_class ->
  'd ->
  ('e, 'a) Bigarray.kind ->
  (safe, 'b) specA specification for a bigarray type
val memcpy : 
  (safe, 's) spec ->
  (safe, 'd) spec ->
  src:'s ->
  dst:'d ->
  ?src_off:int ->
  ?dst_off:int ->
  len:int ->
  unitmemcpy s d ~src ~dst ~src_off ~dst_off ~len copies len bytes from offset src_off of src to offset dst_off of dst.
val unsafe_memcpy : 
  (_, 's) spec ->
  (_, 'd) spec ->
  src:'s ->
  dst:'d ->
  ?src_off:int ->
  ?dst_off:int ->
  len:int ->
  unitunsafe_memcpy s d ~src ~dst ~src_off ~dst_off ~len copies len bytes from offset src_off of src to offset dst_off of dst.
No attempt is made to check that the specified regions of memory actually fall within src and dst.
memcpy_from_string d ~src ~dst ~dst_off copies src to offset dst_off of dst.