Lines Matching defs:data
22 * SkData holds an immutable data buffer. Not only is the data immutable,
23 * but the actual ptr that is returned (by data() or bytes()) is guaranteed
36 * Returns the ptr to the data.
41 const void* data() const { return fPtr; }
49 * Like data(), returns a read-only ptr into the data, but in this case
59 * contents when another client/thread has access to the data.
70 * Helper to copy a range of the data into a caller-provided buffer.
72 * length to the size of the data. If buffer is NULL, it is ignored, and
85 * of scope, allowing for custom allocation/freeing of the data's contents.
90 * Create a new dataref by copying the specified data
92 static sk_sp<SkData> MakeWithCopy(const void* data, size_t length);
96 * Create a new data with uninitialized contents. The caller should call writable_data()
116 * Call this when the data parameter is already const and will outlive the lifetime of the
119 static sk_sp<SkData> MakeWithoutCopy(const void* data, size_t length) {
120 return MakeWithProc(data, length, NoopReleaseProc, nullptr);
127 static sk_sp<SkData> MakeFromMalloc(const void* data, size_t length);
160 * Attempt to read size bytes into a SkData. If the read succeeds, return the data,
167 * Create a new dataref using a subset of the data in the specified