pub unsafe extern "C" fn aws_message_pool_acquire(
msg_pool: *mut aws_message_pool,
message_type: aws_io_message_type,
size_hint: usize
) -> *mut aws_io_message
Expand description
Acquires a message from the pool if available, otherwise, it attempts to allocate. If a message is acquired, note that size_hint is just a hint. the return value’s capacity will be set to the actual buffer size.