Home
last modified time | relevance | path

Searched refs:AllocatedBuffer (Results 1 – 18 of 18) sorted by relevance

/external/protobuf/java/core/src/main/java/com/google/protobuf/
DAllocatedBuffer.java42 abstract class AllocatedBuffer { class
109 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) {
DBufferAllocator.java44 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()
DBinaryWriter.java75 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 …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DAllocatedBuffer.java42 public abstract class AllocatedBuffer { class
54 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()
DBufferAllocator.java28 public AllocatedBuffer allocateDirectBuffer(int capacity) {
29 return AllocatedBuffer.wrap(ByteBuffer.allocateDirect(capacity));
43 public abstract AllocatedBuffer allocateDirectBuffer(int capacity); in allocateDirectBuffer()
DConscryptEngine.java1041 AllocatedBuffer allocatedBuffer = null;
1103 AllocatedBuffer allocatedBuffer = null;
1171 AllocatedBuffer allocatedBuffer = null;
1293 AllocatedBuffer allocatedBuffer = null;
DConscryptEngineSocket.java721 private final AllocatedBuffer allocatedBuffer;
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DAllocatedBuffer.java44 public abstract class AllocatedBuffer { class
56 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()
DBufferAllocator.java30 public AllocatedBuffer allocateDirectBuffer(int capacity) {
31 return AllocatedBuffer.wrap(ByteBuffer.allocateDirect(capacity));
45 public abstract AllocatedBuffer allocateDirectBuffer(int capacity); in allocateDirectBuffer()
DConscryptEngine.java1038 AllocatedBuffer allocatedBuffer = null;
1100 AllocatedBuffer allocatedBuffer = null;
1168 AllocatedBuffer allocatedBuffer = null;
1290 AllocatedBuffer allocatedBuffer = null;
DConscryptEngineSocket.java737 private final AllocatedBuffer allocatedBuffer;
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/
DNettyBufferAllocator.java37 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()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DExperimentalSerializationUtil.java57 Queue<AllocatedBuffer> buffers = writer.complete(); in toByteArray()
59 AllocatedBuffer buffer = buffers.poll(); in toByteArray()
/external/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
DJITLink.h810 auto *AllocatedBuffer = Allocator.Allocate<char>(SourceStr.size()); in allocateString() local
811 llvm::copy(SourceStr, AllocatedBuffer); in allocateString()
812 return StringRef(AllocatedBuffer, SourceStr.size()); in allocateString()
/external/protobuf/
Dbuild.gradle40 include 'com/google/protobuf/AllocatedBuffer.java'
DAndroid.bp514 "java/core/src/main/java/com/google/protobuf/AllocatedBuffer.java",
DBUILD661 "java/core/src/main/java/com/google/protobuf/AllocatedBuffer.java",
DMakefile.am236 java/core/src/main/java/com/google/protobuf/AllocatedBuffer.java \