Uses of Class
com.google.protobuf.AllocatedBuffer
Packages that use AllocatedBuffer
-
Uses of AllocatedBuffer in com.google.protobuf
Methods in com.google.protobuf that return AllocatedBufferModifier and TypeMethodDescriptionabstract AllocatedBufferBufferAllocator.allocateDirectBuffer(int capacity) Allocates a direct (i.e.abstract AllocatedBufferBufferAllocator.allocateHeapBuffer(int capacity) Allocates a buffer with the given capacity that is backed by an array on the heap.abstract AllocatedBufferAllocatedBuffer.position(int position) Sets this buffer's position.static AllocatedBufferAllocatedBuffer.wrap(byte[] bytes) Creates a newAllocatedBufferthat is backed by the given array.static AllocatedBufferAllocatedBuffer.wrap(byte[] bytes, int offset, int length) Creates a newAllocatedBufferthat is backed by the given array.static AllocatedBufferAllocatedBuffer.wrap(ByteBuffer buffer) Creates a newAllocatedBufferthat is backed by the givenByteBuffer.private static AllocatedBufferAllocatedBuffer.wrapNoCheck(byte[] bytes, int offset, int length)