Lines Matching defs:ptr
38 template <typename D, typename S> static D* SkTAfter(S* ptr, size_t count = 1) {
39 return reinterpret_cast<D*>(ptr + count);
45 template <typename D, typename S> static D* SkTAddOffset(S* ptr, ptrdiff_t byteOffset) {
48 return reinterpret_cast<D*>(reinterpret_cast<sknonstd::same_cv_t<char, D>*>(ptr) + byteOffset);
243 /** Takes ownership of the ptr. The ptr must be a value which can be passed to sk_free. */
244 explicit SkAutoTMalloc(T* ptr = nullptr) : fPtr(ptr) {}
253 /** Resize the memory area pointed to by the current ptr preserving contents. */
258 /** Resize the memory area pointed to by the current ptr without preserving contents. */
279 * Transfer ownership of the ptr to the caller, setting the internal