Lines Matching refs:SharedBuffer
32 class SharedBuffer
44 static SharedBuffer* alloc(size_t size);
51 static void dealloc(const SharedBuffer* released);
63 static inline SharedBuffer* bufferFromData(void* data);
66 static inline const SharedBuffer* bufferFromData(const void* data);
72 SharedBuffer* edit() const;
75 SharedBuffer* editResize(size_t size) const;
78 SharedBuffer* attemptEdit() const;
81 SharedBuffer* reset(size_t size) const;
97 inline SharedBuffer() { } in SharedBuffer() function
98 inline ~SharedBuffer() { } in ~SharedBuffer()
99 SharedBuffer(const SharedBuffer&);
100 SharedBuffer& operator = (const SharedBuffer&);
108 static_assert(sizeof(SharedBuffer) % 8 == 0
109 && (sizeof(size_t) > 4 || sizeof(SharedBuffer) == 16),
114 const void* SharedBuffer::data() const { in data()
118 void* SharedBuffer::data() { in data()
122 size_t SharedBuffer::size() const { in size()
126 SharedBuffer* SharedBuffer::bufferFromData(void* data) { in bufferFromData()
127 return data ? static_cast<SharedBuffer *>(data)-1 : nullptr; in bufferFromData()
130 const SharedBuffer* SharedBuffer::bufferFromData(const void* data) { in bufferFromData()
131 return data ? static_cast<const SharedBuffer *>(data)-1 : nullptr; in bufferFromData()
134 size_t SharedBuffer::sizeFromData(const void* data) { in sizeFromData()
138 bool SharedBuffer::onlyOwner() const { in onlyOwner()