pub unsafe extern "C" fn aws_byte_buf_append_dynamic_secure(
    to: *mut aws_byte_buf,
    from: *const aws_byte_cursor
) -> c_int
Expand description

Copies from to to. If to is too small, the buffer will be grown appropriately and the old contents copied over, before the new contents are appended.

If the grow fails (overflow or OOM), then an error will be returned.

If the buffer is grown, the old buffer will be securely cleared before getting freed.

from and to may be the same buffer, permitting copying a buffer into itself.