Uses of Class
com.google.protobuf.BufferAllocator
Packages that use BufferAllocator
-
Uses of BufferAllocator in com.google.protobuf
Fields in com.google.protobuf declared as BufferAllocatorModifier and TypeFieldDescriptionprivate final BufferAllocator
BinaryWriter.alloc
private static final BufferAllocator
BufferAllocator.UNPOOLED
Methods in com.google.protobuf that return BufferAllocatorModifier and TypeMethodDescriptionstatic BufferAllocator
BufferAllocator.unpooled()
Returns an unpooled buffer allocator, which will create a new buffer for each request.Methods in com.google.protobuf with parameters of type BufferAllocatorModifier and TypeMethodDescriptionstatic BinaryWriter
BinaryWriter.newDirectInstance
(BufferAllocator alloc) Creates a newBinaryWriter
that will allocate direct (i.e.static BinaryWriter
BinaryWriter.newDirectInstance
(BufferAllocator alloc, int chunkSize) Creates a newBinaryWriter
that will allocate direct (i.e.static BinaryWriter
BinaryWriter.newHeapInstance
(BufferAllocator alloc) Creates a newBinaryWriter
that will allocate heap buffers ofBinaryWriter.DEFAULT_CHUNK_SIZE
as necessary.static BinaryWriter
BinaryWriter.newHeapInstance
(BufferAllocator alloc, int chunkSize) Creates a newBinaryWriter
that will allocate heap buffers ofchunkSize
as necessary.(package private) static BinaryWriter
BinaryWriter.newSafeDirectInstance
(BufferAllocator alloc, int chunkSize) (package private) static BinaryWriter
BinaryWriter.newSafeHeapInstance
(BufferAllocator alloc, int chunkSize) (package private) static BinaryWriter
BinaryWriter.newUnsafeDirectInstance
(BufferAllocator alloc, int chunkSize) (package private) static BinaryWriter
BinaryWriter.newUnsafeHeapInstance
(BufferAllocator alloc, int chunkSize) Constructors in com.google.protobuf with parameters of type BufferAllocatorModifierConstructorDescriptionprivate
BinaryWriter
(BufferAllocator alloc, int chunkSize) Only allow subclassing for inner classes.(package private)
SafeDirectWriter
(BufferAllocator alloc, int chunkSize) (package private)
SafeHeapWriter
(BufferAllocator alloc, int chunkSize) (package private)
UnsafeDirectWriter
(BufferAllocator alloc, int chunkSize) (package private)
UnsafeHeapWriter
(BufferAllocator alloc, int chunkSize)