Lines Matching refs:key

29 int audio_metadata_put_int32(audio_metadata_t *metadata, const char *key, int32_t value) {  in audio_metadata_put_int32()  argument
30 if (metadata == nullptr || key == nullptr) { in audio_metadata_put_int32()
33 reinterpret_cast<Data *>(metadata)->emplace(key, value); in audio_metadata_put_int32()
37 int audio_metadata_put_int64(audio_metadata_t *metadata, const char *key, int64_t value) { in audio_metadata_put_int64() argument
38 if (metadata == nullptr || key == nullptr) { in audio_metadata_put_int64()
41 reinterpret_cast<Data *>(metadata)->emplace(key, value); in audio_metadata_put_int64()
45 int audio_metadata_put_float(audio_metadata_t *metadata, const char *key, float value) { in audio_metadata_put_float() argument
46 if (metadata == nullptr || key == nullptr) { in audio_metadata_put_float()
49 reinterpret_cast<Data *>(metadata)->emplace(key, value); in audio_metadata_put_float()
53 int audio_metadata_put_double(audio_metadata_t *metadata, const char *key, double value) { in audio_metadata_put_double() argument
54 if (metadata == nullptr || key == nullptr) { in audio_metadata_put_double()
57 reinterpret_cast<Data *>(metadata)->emplace(key, value); in audio_metadata_put_double()
61 int audio_metadata_put_string(audio_metadata_t *metadata, const char *key, const char *value) { in audio_metadata_put_string() argument
62 if (metadata == nullptr || key == nullptr || value == nullptr) { in audio_metadata_put_string()
65 reinterpret_cast<Data *>(metadata)->emplace(key, value); in audio_metadata_put_string()
70 audio_metadata_t *metadata, const char *key, audio_metadata_t *value) { in audio_metadata_put_data() argument
71 if (metadata == nullptr || key == nullptr || value == nullptr) { in audio_metadata_put_data()
74 reinterpret_cast<Data *>(metadata)->emplace(key, *reinterpret_cast<Data *>(value)); in audio_metadata_put_data()
80 int audio_metadata_get_int32(audio_metadata_t *metadata, const char *key, int32_t *value) { in audio_metadata_get_int32() argument
81 if (metadata == nullptr || key == nullptr || value == nullptr) { in audio_metadata_get_int32()
84 int32_t *val = reinterpret_cast<Data *>(metadata)->get_ptr(Key<int32_t>(key)); in audio_metadata_get_int32()
92 int audio_metadata_get_int64(audio_metadata_t *metadata, const char *key, int64_t *value) { in audio_metadata_get_int64() argument
93 if (metadata == nullptr || key == nullptr || value == nullptr) { in audio_metadata_get_int64()
96 int64_t *val = reinterpret_cast<Data *>(metadata)->get_ptr(Key<int64_t>(key)); in audio_metadata_get_int64()
104 int audio_metadata_get_float(audio_metadata_t *metadata, const char *key, float *value) { in audio_metadata_get_float() argument
105 if (metadata == nullptr || key == nullptr || value == nullptr) { in audio_metadata_get_float()
108 float *val = reinterpret_cast<Data *>(metadata)->get_ptr(Key<float>(key)); in audio_metadata_get_float()
116 int audio_metadata_get_double(audio_metadata_t *metadata, const char *key, double *value) { in audio_metadata_get_double() argument
117 if (metadata == nullptr || key == nullptr || value == nullptr) { in audio_metadata_get_double()
120 double *val = reinterpret_cast<Data *>(metadata)->get_ptr(Key<double>(key)); in audio_metadata_get_double()
128 int audio_metadata_get_string(audio_metadata_t *metadata, const char *key, char **value) { in audio_metadata_get_string() argument
129 if (metadata == nullptr || key == nullptr || value == nullptr) { in audio_metadata_get_string()
132 std::string *valueStr = reinterpret_cast<Data *>(metadata)->get_ptr(Key<std::string>(key)); in audio_metadata_get_string()
141 audio_metadata_t *metadata, const char *key, audio_metadata_t **value) { in audio_metadata_get_data() argument
142 if (metadata == nullptr || key == nullptr || value == nullptr) { in audio_metadata_get_data()
145 Data *valueData = reinterpret_cast<Data *>(metadata)->get_ptr(Key<Data>(key)); in audio_metadata_get_data()
157 ssize_t audio_metadata_erase(audio_metadata_t *metadata, const char *key) { in audio_metadata_erase() argument
158 if (metadata == nullptr || key == nullptr) { in audio_metadata_erase()
161 return reinterpret_cast<Data *>(metadata)->erase(key); in audio_metadata_erase()