Lines Matching defs:data
37 sk_sp<SkData> data = nullptr;
40 data = SkData::MakeWithoutCopy(stream->getMemoryBase(), stream->getLength());
42 data = SkCopyStreamToData(stream.get());
44 // If we are forced to copy the stream to a data, we can go ahead and delete the stream.
53 if (data->size() < kIcoDirectoryBytes) {
60 const uint16_t numImages = get_short(data->bytes(), 4);
90 const uint8_t* entryBuffer = data->bytes() + kIcoDirectoryBytes + i * kIcoDirEntryBytes;
91 if (data->size() < kIcoDirectoryBytes + (i+1) * kIcoDirEntryBytes) {
107 // It does not indicate the start of the pixel data, but rather the
177 if (offset >= data->size()) {
183 if (offset + size > data->size()) {
189 sk_sp<SkData> embeddedData(SkData::MakeSubset(data.get(), offset, size));