29 #include "io_helpers.h"
55 String text((
const char*) data,
ucslen(data) * 2);
56 size = this->SetText_i(text);
67 String text((
const char*) data,
ucslen(data) * 2);
68 size = this->AddText_i(text);
98 buffer !=
NULL && maxLength > 0)
100 size_t size = this->Size();
102 ::memcpy((
void *)buffer, (
void *)_text.data(), length * 2);
103 if (length < maxLength)
127 index < this->GetNumTextItems())
129 String unicode = _text +
'\0' +
'\0';
131 for (
size_t i = 0; i < index; ++i)
142 size_t total_items = this->GetNumTextItems();
145 buffer !=
NULL && maxLength > 0 && itemNum < total_items)
147 const unicode_t* text = this->GetRawUnicodeTextItem(itemNum);
151 ::memcpy(buffer, text, length * 2);
152 if (length < maxLength)
size_t Add(const char *data)
const unicode_t * GetRawUnicodeTextItem(size_t) const
const unicode_t * GetRawUnicodeText() const
void Set(uint32)
Sets the value of the field to the specified integer.
uint32 Get() const
Returns the value of the integer field.
const T & min(const T &a, const T &b)
size_t ID3_C_EXPORT ucslen(const unicode_t *unicode)