macro_rules! BUFFER_INIT {
($buffer:expr, $size:expr) => { ... };
}
Expand description
Initializes a buffer with a given size.
§Parameters
buffer
: A mutable reference to aYamlBufferT
struct that needs to be initialized.size
: The size of the buffer in bytes.
§Return
This macro does not return a value. It initializes the provided buffer with the given size.
§Safety
This macro assumes that the yaml_malloc
function is correctly implemented and handles memory allocation.