Lines Matching refs:SkData

15 SkData::SkData(const void* ptr, size_t size, ReleaseProc proc, void* context) {  in SkData()  function in SkData
26 SkData::SkData(size_t size) { in SkData() function in SkData
33 SkData::~SkData() { in ~SkData()
39 bool SkData::equals(const SkData* other) const { in equals()
47 size_t SkData::copyRange(size_t offset, size_t length, void* buffer) const { in copyRange()
62 SkData* SkData::PrivateNewWithCopy(const void* srcOrNull, size_t length) { in PrivateNewWithCopy()
64 return SkData::NewEmpty(); in PrivateNewWithCopy()
67 const size_t actualLength = length + sizeof(SkData); in PrivateNewWithCopy()
74 SkData* data = new (storage) SkData(length); in PrivateNewWithCopy()
83 SK_DECLARE_STATIC_ONCE_PTR(SkData, gEmpty);
84 SkData* SkData::NewEmpty() { in NewEmpty()
85 return SkRef(gEmpty.get([]{return new SkData(nullptr, 0, nullptr, nullptr); })); in NewEmpty()
93 SkData* SkData::NewFromMalloc(const void* data, size_t length) { in NewFromMalloc()
94 return new SkData(data, length, sk_free_releaseproc, nullptr); in NewFromMalloc()
97 SkData* SkData::NewWithCopy(const void* src, size_t length) { in NewWithCopy()
102 SkData* SkData::NewUninitialized(size_t length) { in NewUninitialized()
106 SkData* SkData::NewWithProc(const void* ptr, size_t length, ReleaseProc proc, void* context) { in NewWithProc()
107 return new SkData(ptr, length, proc, context); in NewWithProc()
116 SkData* SkData::NewFromFILE(FILE* f) { in NewFromFILE()
123 return SkData::NewWithProc(addr, size, sk_mmap_releaseproc, reinterpret_cast<void*>(size)); in NewFromFILE()
126 SkData* SkData::NewFromFileName(const char path[]) { in NewFromFileName()
131 SkData* data = NewFromFILE(f); in NewFromFileName()
136 SkData* SkData::NewFromFD(int fd) { in NewFromFD()
143 return SkData::NewWithProc(addr, size, sk_mmap_releaseproc, nullptr); in NewFromFD()
148 SkData* src = reinterpret_cast<SkData*>(context); in sk_dataref_releaseproc()
152 SkData* SkData::NewSubset(const SkData* src, size_t offset, size_t length) { in NewSubset()
161 return SkData::NewEmpty(); in NewSubset()
170 return new SkData(src->bytes() + offset, length, sk_dataref_releaseproc, in NewSubset()
171 const_cast<SkData*>(src)); in NewSubset()
174 SkData* SkData::NewWithCString(const char cstr[]) { in NewWithCString()
187 SkData* SkData::NewFromStream(SkStream* stream, size_t size) { in NewFromStream()
188 SkAutoDataUnref data(SkData::NewUninitialized(size)); in NewFromStream()