• Home
  • Raw
  • Download

Lines Matching refs:SkData

16 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 void SkData::operator delete(void* p) { in operator delete()
66 sk_sp<SkData> SkData::PrivateNewWithCopy(const void* srcOrNull, size_t length) { in PrivateNewWithCopy()
68 return SkData::MakeEmpty(); in PrivateNewWithCopy()
71 const size_t actualLength = length + sizeof(SkData); in PrivateNewWithCopy()
75 sk_sp<SkData> data(new (storage) SkData(length)); in PrivateNewWithCopy()
82 void SkData::DummyReleaseProc(const void*, void*) {} in DummyReleaseProc()
86 sk_sp<SkData> SkData::MakeEmpty() { in MakeEmpty()
88 static SkData* empty; in MakeEmpty()
90 once([]{ empty = new SkData(nullptr, 0, nullptr, nullptr); }); in MakeEmpty()
99 sk_sp<SkData> SkData::MakeFromMalloc(const void* data, size_t length) { in MakeFromMalloc()
100 return sk_sp<SkData>(new SkData(data, length, sk_free_releaseproc, nullptr)); in MakeFromMalloc()
103 sk_sp<SkData> SkData::MakeWithCopy(const void* src, size_t length) { in MakeWithCopy()
108 sk_sp<SkData> SkData::MakeUninitialized(size_t length) { in MakeUninitialized()
112 sk_sp<SkData> SkData::MakeWithProc(const void* ptr, size_t length, ReleaseProc proc, void* ctx) { in MakeWithProc()
113 return sk_sp<SkData>(new SkData(ptr, length, proc, ctx)); in MakeWithProc()
122 sk_sp<SkData> SkData::MakeFromFILE(FILE* f) { in MakeFromFILE()
129 return SkData::MakeWithProc(addr, size, sk_mmap_releaseproc, reinterpret_cast<void*>(size)); in MakeFromFILE()
132 sk_sp<SkData> SkData::MakeFromFileName(const char path[]) { in MakeFromFileName()
142 sk_sp<SkData> SkData::MakeFromFD(int fd) { in MakeFromFD()
148 return SkData::MakeWithProc(addr, size, sk_mmap_releaseproc, reinterpret_cast<void*>(size)); in MakeFromFD()
153 SkData* src = reinterpret_cast<SkData*>(context); in sk_dataref_releaseproc()
157 sk_sp<SkData> SkData::MakeSubset(const SkData* src, size_t offset, size_t length) { in MakeSubset()
166 return SkData::MakeEmpty(); in MakeSubset()
175 return sk_sp<SkData>(new SkData(src->bytes() + offset, length, sk_dataref_releaseproc, in MakeSubset()
176 const_cast<SkData*>(src))); in MakeSubset()
179 sk_sp<SkData> SkData::MakeWithCString(const char cstr[]) { in MakeWithCString()
192 sk_sp<SkData> SkData::MakeFromStream(SkStream* stream, size_t size) { in MakeFromStream()
193 sk_sp<SkData> data(SkData::MakeUninitialized(size)); in MakeFromStream()