copy
Deep Copy Utilities
Functions
| Function | Description |
|---|---|
_cp_byte_at | Internal byte reader. |
copy_bytes | Copy n bytes from src to dst. Returns n. |
copy_i64_array | Copy an i64 array of given length. Returns new array pointer. |
copy_vec | Deep copy a vec structure. Vec layout: [0]=len, [1]=cap, [2..]=data |
copy_buf | Copy a byte buffer. Returns new buffer. |
copy_i64_range | Copy n i64 values from src+soff to dst+doff. |
Details
_cp_byte_at
fn _cp_byte_at(buf: &i8, idx: i64) -> i64Internal byte reader.
copy_bytes
fn copy_bytes(dst: &i8, src: &i8, n: i64) -> i64Copy n bytes from src to dst. Returns n.
copy_i64_array
fn copy_i64_array(src: &i64, len: i64) -> &i64Copy an i64 array of given length. Returns new array pointer.
copy_vec
fn copy_vec(src: &i64) -> &i64Deep copy a vec structure. Vec layout: [0]=len, [1]=cap, [2..]=data
copy_buf
fn copy_buf(src: &i8, len: i64) -> &i8Copy a byte buffer. Returns new buffer.
copy_i64_range
fn copy_i64_range(dst: &i64, doff: i64, src: &i64, soff: i64, n: i64) -> i64Copy n i64 values from src+soff to dst+doff.