Function cras::outputByteBuffer(allocator_t, const std::vector<uint8_t>&)
Defined in File c_api.hpp
Function Documentation
-
uint8_t *cras::outputByteBuffer(allocator_t allocator, const std::vector<uint8_t> &bytes)
Allocate enough bytes using the given allocator and copy the given bytes into the buffer.
- Parameters:
allocator – [in] The allocator to use.
bytes – [in] The bytes to copy into the allocated buffer.
- Returns:
Pointer to the allocated buffer.