Lines Matching defs:SharedBuffer
41 class PLATFORM_EXPORT SharedBuffer : public RefCounted<SharedBuffer> {
43 static PassRefPtr<SharedBuffer> create() { return adoptRef(new SharedBuffer); }
44 static PassRefPtr<SharedBuffer> create(size_t size) { return adoptRef(new SharedBuffer(size)); }
45 static PassRefPtr<SharedBuffer> create(const char* c, int i) { return adoptRef(new SharedBuffer(c, i)); }
46 static PassRefPtr<SharedBuffer> create(const unsigned char* c, int i) { return adoptRef(new SharedBuffer(c, i)); }
48 static PassRefPtr<SharedBuffer> createPurgeable(const char* c, int i) { return adoptRef(new SharedBuffer(c, i, PurgeableVector::Purgeable)); }
50 static PassRefPtr<SharedBuffer> adoptVector(Vector<char>&);
52 ~SharedBuffer();
63 void append(PassRefPtr<SharedBuffer>);
69 PassRefPtr<SharedBuffer> copy() const;
85 // Creates an ArrayBuffer and copies this SharedBuffer's contents to that
90 // Creates an SkData and copies this SharedBuffer's contents to that
97 // WARNING: Calling unlock() on a SharedBuffer that wasn't created with the
99 // SharedBuffer::createPurgeable() if you intend to call unlock().
105 SharedBuffer();
106 explicit SharedBuffer(size_t);
107 SharedBuffer(const char*, int);
108 SharedBuffer(const char*, int, PurgeableVector::PurgeableOption);
109 SharedBuffer(const unsigned char*, int);
111 // See SharedBuffer::data().