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();
101 length = dami::min(maxLength, size);
102 ::memcpy((
void *)buffer, (
void *)_text.data(), length * 2);
103 if (length < maxLength)
129 String unicode = _text +
'\0' +
'\0';
131 for (
size_t i = 0; i < index; ++i)
133 text += ucslen(text) + 1;
145 buffer !=
NULL && maxLength > 0 && itemNum < total_items)
150 size_t length = dami::min(maxLength, ucslen(text));
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
size_t GetNumTextItems() const
Returns the number of items in a text list.
ID3_FieldType GetType() const
void Set(uint32)
Sets the value of the field to the specified integer.
ID3_TextEnc GetEncoding() const
uint32 Get() const
Returns the value of the integer field.
size_t Size() const
Returns the size of a field.