Home
last modified time | relevance | path

Searched refs:byteString (Results 1 – 2 of 2) sorted by relevance

/system/media/audio_utils/
DMetadata.cpp168 audio_metadata_t *audio_metadata_from_byte_string(const uint8_t *byteString, size_t length) { in audio_metadata_from_byte_string() argument
169 if (byteString == nullptr) { in audio_metadata_from_byte_string()
173 new(std::nothrow) Data(dataFromByteString(ByteString(byteString, length)))); in audio_metadata_from_byte_string()
176 ssize_t byte_string_from_audio_metadata(audio_metadata_t *metadata, uint8_t **byteString) { in byte_string_from_audio_metadata() argument
177 if (metadata == nullptr || byteString == nullptr) { in byte_string_from_audio_metadata()
181 *byteString = (uint8_t *) malloc(bs.size()); in byte_string_from_audio_metadata()
182 if (*byteString == nullptr) { in byte_string_from_audio_metadata()
185 memcpy(*byteString, bs.c_str(), bs.size()); in byte_string_from_audio_metadata()
189 size_t audio_metadata_byte_string_len(const uint8_t *byteString) { in audio_metadata_byte_string_len() argument
190 return dataByteStringLen(byteString); in audio_metadata_byte_string_len()
/system/media/audio_utils/include/audio_utils/
DMetadata.h1195 audio_metadata_t *audio_metadata_from_byte_string(const uint8_t *byteString, size_t length);
1207 ssize_t byte_string_from_audio_metadata(audio_metadata_t *metadata, uint8_t **byteString);
1217 size_t audio_metadata_byte_string_len(const uint8_t *byteString);