pub unsafe extern "C" fn aws_byte_buf_write_be24(
    buf: *mut aws_byte_buf,
    x: u32
) -> bool
Expand description

Writes low 24-bits (3 bytes) of an unsigned integer in network byte order (big endian) to buffer. Ex: If x is 0x00AABBCC then {0xAA, 0xBB, 0xCC} is written to buffer.

On success, returns true and updates the buffer /length accordingly. If there is insufficient space in the buffer, or x’s value cannot fit in 3 bytes, returns false, leaving the buffer unchanged.