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

Copy contents of cursor to buffer, then update cursor to reference the memory stored in the buffer. If buffer is too small, AWS_ERROR_DEST_COPY_TOO_SMALL will be returned.

The cursor is permitted to reference memory from earlier in the buffer.