Lines Matching refs:SkData
22 class SK_API SkData final : public SkNVRefCnt<SkData> {
69 bool equals(const SkData* other) const;
80 static sk_sp<SkData> MakeWithCopy(const void* data, size_t length);
87 static sk_sp<SkData> MakeUninitialized(size_t length);
95 static sk_sp<SkData> MakeWithCString(const char cstr[]);
101 static sk_sp<SkData> MakeWithProc(const void* ptr, size_t length, ReleaseProc proc, void* ctx);
107 static sk_sp<SkData> MakeWithoutCopy(const void* data, size_t length) { in MakeWithoutCopy()
115 static sk_sp<SkData> MakeFromMalloc(const void* data, size_t length);
121 static sk_sp<SkData> MakeFromFileName(const char path[]);
130 static sk_sp<SkData> MakeFromFILE(FILE* f);
139 static sk_sp<SkData> MakeFromFD(int fd);
146 static sk_sp<SkData> MakeFromStream(SkStream*, size_t size);
152 static sk_sp<SkData> MakeSubset(const SkData* src, size_t offset, size_t length);
158 static sk_sp<SkData> MakeEmpty();
161 friend class SkNVRefCnt<SkData>;
167 SkData(const void* ptr, size_t size, ReleaseProc, void* context);
168 explicit SkData(size_t size); // inplace new/delete
169 ~SkData();
175 static sk_sp<SkData> PrivateNewWithCopy(const void* srcOrNull, size_t length);