Contents

buf_setsize

Set size of data region allocated to a buffer.

Declaration

void buf_setsize(buf_t bp, uint32_t);

Parameters

  • bp:

    Buffer whose size to set.

Return Value

void.

Discussion

May be larger than amount of valid data in buffer. Should be used by code which is manually providing storage for an iobuf, one allocated with buf_alloc().

See Also

Buffers