Lines Matching refs:SharedBuffer
36 SharedBuffer* buf = SharedBuffer::alloc(size); in alloc()
52 SharedBuffer* buf = static_cast<SharedBuffer*>(alloc(sizeof(char16_t) * (u16len + 1))); in allocFromUTF8()
75 SharedBuffer* buf = static_cast<SharedBuffer*>(alloc((u16len + 1) * sizeof(char16_t))); in allocFromUTF16()
134 return SharedBuffer::sizeFromData(mString) / sizeof(char16_t) - 1; in size()
178 SharedBuffer* buf = static_cast<SharedBuffer*>(editResize((len + 1) * sizeof(char16_t))); in setTo()
205 SharedBuffer* buf = static_cast<SharedBuffer*>(editResize(size)); in append()
233 SharedBuffer* buf = static_cast<SharedBuffer*>(editResize(size)); in insert()
292 SharedBuffer* buf; in edit()
294 buf = static_cast<SharedBuffer*>(alloc((size() + 1) * sizeof(char16_t))); in edit()
299 buf = SharedBuffer::bufferFromData(mString)->edit(); in edit()
306 SharedBuffer* buf; in editResize()
312 buf = static_cast<SharedBuffer*>(alloc(newSize)); in editResize()
317 buf = SharedBuffer::bufferFromData(mString)->editResize(newSize); in editResize()
326 SharedBuffer::bufferFromData(mString)->acquire(); in acquire()
333 SharedBuffer::bufferFromData(mString)->release(); in release()
340 static_assert(sizeof(SharedBuffer) - offsetof(SharedBuffer, mClientMetadata) == 4); in isStaticString()
348 static_assert(sizeof(SharedBuffer) - offsetof(SharedBuffer, mClientMetadata) == 4); in staticStringSize()
361 SharedBuffer* buf = static_cast<SharedBuffer*>(edit()); in replaceAll()