Searched refs:AllocatedBuffer (Results 1 – 18 of 18) sorted by relevance
42 abstract class AllocatedBuffer { class109 public abstract AllocatedBuffer position(int position); in position()131 public static AllocatedBuffer wrap(byte[] bytes) { in wrap()140 public static AllocatedBuffer wrap(final byte[] bytes, final int offset, final int length) { in wrap()153 public static AllocatedBuffer wrap(final ByteBuffer buffer) { in wrap()156 return new AllocatedBuffer() { in wrap()189 public AllocatedBuffer position(int position) { in wrap()206 private static AllocatedBuffer wrapNoCheck(208 return new AllocatedBuffer() {243 public AllocatedBuffer position(int position) {
44 public AllocatedBuffer allocateHeapBuffer(int capacity) {45 return AllocatedBuffer.wrap(new byte[capacity]);49 public AllocatedBuffer allocateDirectBuffer(int capacity) {50 return AllocatedBuffer.wrap(ByteBuffer.allocateDirect(capacity));60 public abstract AllocatedBuffer allocateHeapBuffer(int capacity); in allocateHeapBuffer()63 public abstract AllocatedBuffer allocateDirectBuffer(int capacity); in allocateDirectBuffer()
75 final ArrayDeque<AllocatedBuffer> buffers = new ArrayDeque<AllocatedBuffer>(4);165 public final Queue<AllocatedBuffer> complete() { in complete()838 final AllocatedBuffer newHeapBuffer() { in newHeapBuffer()842 final AllocatedBuffer newHeapBuffer(int capacity) { in newHeapBuffer()846 final AllocatedBuffer newDirectBuffer() { in newDirectBuffer()850 final AllocatedBuffer newDirectBuffer(int capacity) { in newDirectBuffer()919 private AllocatedBuffer allocatedBuffer;951 private void nextBuffer(AllocatedBuffer allocatedBuffer) { in nextBuffer()1397 buffers.addFirst(AllocatedBuffer.wrap(value, offset, length)); in writeLazy()1427 buffers.addFirst(AllocatedBuffer.wrap(value)); in writeLazy()[all …]
42 public abstract class AllocatedBuffer { class54 public AllocatedBuffer retain() { in retain()64 public abstract AllocatedBuffer release(); in release()69 public static AllocatedBuffer wrap(final ByteBuffer buffer) { in wrap()72 return new AllocatedBuffer() { in wrap()80 public AllocatedBuffer release() { in wrap()
28 public AllocatedBuffer allocateDirectBuffer(int capacity) {29 return AllocatedBuffer.wrap(ByteBuffer.allocateDirect(capacity));43 public abstract AllocatedBuffer allocateDirectBuffer(int capacity); in allocateDirectBuffer()
1041 AllocatedBuffer allocatedBuffer = null;1103 AllocatedBuffer allocatedBuffer = null;1171 AllocatedBuffer allocatedBuffer = null;1293 AllocatedBuffer allocatedBuffer = null;
721 private final AllocatedBuffer allocatedBuffer;
44 public abstract class AllocatedBuffer { class56 public AllocatedBuffer retain() { in retain()66 public abstract AllocatedBuffer release(); in release()71 public static AllocatedBuffer wrap(final ByteBuffer buffer) { in wrap()74 return new AllocatedBuffer() { in wrap()82 public AllocatedBuffer release() { in wrap()
30 public AllocatedBuffer allocateDirectBuffer(int capacity) {31 return AllocatedBuffer.wrap(ByteBuffer.allocateDirect(capacity));45 public abstract AllocatedBuffer allocateDirectBuffer(int capacity); in allocateDirectBuffer()
1038 AllocatedBuffer allocatedBuffer = null;1100 AllocatedBuffer allocatedBuffer = null;1168 AllocatedBuffer allocatedBuffer = null;1290 AllocatedBuffer allocatedBuffer = null;
737 private final AllocatedBuffer allocatedBuffer;
37 public AllocatedBuffer allocateDirectBuffer(int capacity) { in allocateDirectBuffer()41 private static final class ByteBufAdapter extends AllocatedBuffer {56 public AllocatedBuffer retain() { in retain()62 public AllocatedBuffer release() { in release()
57 Queue<AllocatedBuffer> buffers = writer.complete(); in toByteArray()59 AllocatedBuffer buffer = buffers.poll(); in toByteArray()
810 auto *AllocatedBuffer = Allocator.Allocate<char>(SourceStr.size()); in allocateString() local811 llvm::copy(SourceStr, AllocatedBuffer); in allocateString()812 return StringRef(AllocatedBuffer, SourceStr.size()); in allocateString()
40 include 'com/google/protobuf/AllocatedBuffer.java'
514 "java/core/src/main/java/com/google/protobuf/AllocatedBuffer.java",
661 "java/core/src/main/java/com/google/protobuf/AllocatedBuffer.java",
236 java/core/src/main/java/com/google/protobuf/AllocatedBuffer.java \