Searched refs:SharedBuffer (Results 1 – 4 of 4) sorted by relevance
28 class SharedBuffer40 static SharedBuffer* alloc(size_t size);47 static ssize_t dealloc(const SharedBuffer* released);50 static inline const SharedBuffer* sharedBuffer(const void* data);62 static inline SharedBuffer* bufferFromData(void* data);65 static inline const SharedBuffer* bufferFromData(const void* data);71 SharedBuffer* edit() const;74 SharedBuffer* editResize(size_t size) const;77 SharedBuffer* attemptEdit() const;80 SharedBuffer* reset(size_t size) const;[all …]
29 SharedBuffer* SharedBuffer::alloc(size_t size) in alloc()31 SharedBuffer* sb = static_cast<SharedBuffer *>(malloc(sizeof(SharedBuffer) + size)); in alloc()40 ssize_t SharedBuffer::dealloc(const SharedBuffer* released) in dealloc()43 free(const_cast<SharedBuffer*>(released)); in dealloc()47 SharedBuffer* SharedBuffer::edit() const in edit()50 return const_cast<SharedBuffer*>(this); in edit()52 SharedBuffer* sb = alloc(mSize); in edit()60 SharedBuffer* SharedBuffer::editResize(size_t newSize) const in editResize()63 SharedBuffer* buf = const_cast<SharedBuffer*>(this); in editResize()65 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize); in editResize()[all …]
56 SharedBuffer::sharedBuffer(mStorage)->acquire(); in VectorImpl()79 SharedBuffer::sharedBuffer(mStorage)->acquire(); in operator =()91 SharedBuffer* sb = SharedBuffer::sharedBuffer(mStorage)->attemptEdit(); in editArrayImpl()93 sb = SharedBuffer::alloc(capacity() * mItemSize); in editArrayImpl()107 return SharedBuffer::sharedBuffer(mStorage)->size() / mItemSize; in capacity()252 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in setCapacity()267 const SharedBuffer* sb = SharedBuffer::sharedBuffer(mStorage); in release_storage()268 if (sb->release(SharedBuffer::eKeepStorage) == 1) { in release_storage()270 SharedBuffer::dealloc(sb); in release_storage()292 const SharedBuffer* cur_sb = SharedBuffer::sharedBuffer(mStorage); in _grow()[all …]
19 codeflinger/tinyutils/SharedBuffer.cpp \