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 = in append()
206 static_cast<SharedBuffer*>(editResize((myLen + otherLen + 1) * sizeof(char16_t))); in append()
231 SharedBuffer* buf = in append()
232 static_cast<SharedBuffer*>(editResize((myLen + otherLen + 1) * sizeof(char16_t))); in append()
266 SharedBuffer* buf = in insert()
267 static_cast<SharedBuffer*>(editResize((myLen + len + 1) * sizeof(char16_t))); in insert()
332 SharedBuffer* buf; in edit()
334 buf = static_cast<SharedBuffer*>(alloc((size() + 1) * sizeof(char16_t))); in edit()
339 buf = SharedBuffer::bufferFromData(mString)->edit(); in edit()
346 SharedBuffer* buf; in editResize()
352 buf = static_cast<SharedBuffer*>(alloc(newSize)); in editResize()
357 buf = SharedBuffer::bufferFromData(mString)->editResize(newSize); in editResize()
366 SharedBuffer::bufferFromData(mString)->acquire(); in acquire()
373 SharedBuffer::bufferFromData(mString)->release(); in release()
380 static_assert(sizeof(SharedBuffer) - offsetof(SharedBuffer, mClientMetadata) == 4); in isStaticString()
388 static_assert(sizeof(SharedBuffer) - offsetof(SharedBuffer, mClientMetadata) == 4); in staticStringSize()
402 SharedBuffer* buf = static_cast<SharedBuffer*>(edit()); in makeLower()
423 SharedBuffer* buf = static_cast<SharedBuffer*>(edit()); in replaceAll()
450 SharedBuffer* buf = static_cast<SharedBuffer*>(editResize((N + 1) * sizeof(char16_t))); in remove()
458 SharedBuffer* buf = static_cast<SharedBuffer*>(editResize((len + 1) * sizeof(char16_t))); in remove()