Lines Matching refs:data

34     MemorySource(const uint8_t *data, size_t size)
35 : mData(data),
43 virtual ssize_t readAt(off64_t offset, void *data, size_t size) {
47 memcpy(data, mData + offset, copy);
73 ID3::ID3(const uint8_t *data, size_t size, bool ignoreV1)
80 sp<MemorySource> source = new MemorySource(data, size);
350 // Strip data length indicator
361 // of 0xff 0x00 with just 0xff in order to get the real data.
374 // move the remaining data following this frame
472 const uint8_t *data, size_t size,
476 if (data[i] == '\0') {
479 } else if (data[i] < 0x80) {
489 s->setTo((const char *)data, size);
496 if (data[i] == '\0') {
498 } else if (data[i] < 0x80) {
499 *ptr++ = data[i];
500 } else if (data[i] < 0xc0) {
502 *ptr++ = data[i];
505 *ptr++ = data[i] - 64;
515 // the 2nd argument is used to get the data following the \0 in a comment field
524 // followed by more data. The data following the \0 can be retrieved by setting
708 // Per-frame unsynchronization and data-length indicator
810 const uint8_t *data = it.getData(&size);
813 uint8_t encoding = data[0];
814 mime->setTo((const char *)&data[1]);
815 size_t mimeLen = strlen((const char *)&data[1]) + 1;
817 uint8_t picType = data[1 + mimeLen];
826 size_t descLen = StringSize(&data[2 + mimeLen], encoding);
830 return &data[2 + mimeLen + descLen];
832 uint8_t encoding = data[0];
834 if (!memcmp(&data[1], "PNG", 3)) {
836 } else if (!memcmp(&data[1], "JPG", 3)) {
838 } else if (!memcmp(&data[1], "-->", 3)) {
845 uint8_t picType = data[4];
853 size_t descLen = StringSize(&data[5], encoding);
857 return &data[5 + descLen];