Function cras::outputString(allocator_t, const std::string&)

Function Documentation

char *cras::outputString(allocator_t allocator, const std::string &string)

Allocate enough bytes using the given allocator and copy the given string into the buffer (including null termination byte).

Parameters:
  • allocator[in] The allocator to use.

  • string[in] The string to copy into the allocated buffer.

Returns:

Pointer to the allocated buffer.