pub unsafe extern "C" fn aws_byte_buf_init_copy(
    dest: *mut aws_byte_buf,
    allocator: *mut aws_allocator,
    src: *const aws_byte_buf
) -> c_int
Expand description

Initializes an aws_byte_buf structure base on another valid one. Requires: *src and *allocator are valid objects. Ensures: *dest is a valid aws_byte_buf with a new backing array dest->buffer which is a copy of the elements from src->buffer.