Lines Matching refs:SkData
248 fData.reset(SkData::NewFromFILE(fFILE)); in duplicate()
286 static SkData* newFromParams(const void* src, size_t size, bool copyData) { in newFromParams()
288 return SkData::NewWithCopy(src, size); in newFromParams()
290 return SkData::NewWithoutCopy(src, size); in newFromParams()
295 fData = SkData::NewEmpty(); in SkMemoryStream()
300 fData = SkData::NewUninitialized(size); in SkMemoryStream()
309 SkMemoryStream::SkMemoryStream(SkData* data) { in SkMemoryStream()
311 fData = SkData::NewEmpty(); in SkMemoryStream()
325 fData = SkData::NewFromMalloc(src, size); in setMemoryOwned()
335 SkData* SkMemoryStream::copyToData() const { in copyToData()
340 SkData* SkMemoryStream::setData(SkData* data) { in setData()
343 fData = SkData::NewEmpty(); in setData()
656 SkData* SkDynamicMemoryWStream::copyToData() const { in copyToData()
658 SkData* data = SkData::NewUninitialized(fBytesWritten); in copyToData()
857 static SkData* mmap_filename(const char path[]) { in mmap_filename()
863 SkData* data = SkData::NewFromFILE(file); in mmap_filename()
869 SkAutoTUnref<SkData> data(mmap_filename(path)); in NewFromFile()
885 SkData* SkCopyStreamToData(SkStream* stream) { in SkCopyStreamToData()
889 return SkData::NewFromStream(stream, stream->getLength()); in SkCopyStreamToData()