copy

Deep Copy Utilities

Functions

FunctionDescription
_cp_byte_atInternal byte reader.
copy_bytesCopy n bytes from src to dst. Returns n.
copy_i64_arrayCopy an i64 array of given length. Returns new array pointer.
copy_vecDeep copy a vec structure. Vec layout: [0]=len, [1]=cap, [2..]=data
copy_bufCopy a byte buffer. Returns new buffer.
copy_i64_rangeCopy n i64 values from src+soff to dst+doff.

Details

_cp_byte_at

fn _cp_byte_at(buf: &i8, idx: i64) -> i64

Internal byte reader.

copy_bytes

fn copy_bytes(dst: &i8, src: &i8, n: i64) -> i64

Copy n bytes from src to dst. Returns n.

copy_i64_array

fn copy_i64_array(src: &i64, len: i64) -> &i64

Copy an i64 array of given length. Returns new array pointer.

copy_vec

fn copy_vec(src: &i64) -> &i64

Deep copy a vec structure. Vec layout: [0]=len, [1]=cap, [2..]=data

copy_buf

fn copy_buf(src: &i8, len: i64) -> &i8

Copy a byte buffer. Returns new buffer.

copy_i64_range

fn copy_i64_range(dst: &i64, doff: i64, src: &i64, soff: i64, n: i64) -> i64

Copy n i64 values from src+soff to dst+doff.