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 BufferAllocatorBinaryWriter.allocprivate static final BufferAllocatorBufferAllocator.UNPOOLEDMethods in com.google.protobuf that return BufferAllocatorModifier and TypeMethodDescriptionstatic BufferAllocatorBufferAllocator.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 BinaryWriterBinaryWriter.newDirectInstance(BufferAllocator alloc) Creates a newBinaryWriterthat will allocate direct (i.e.static BinaryWriterBinaryWriter.newDirectInstance(BufferAllocator alloc, int chunkSize) Creates a newBinaryWriterthat will allocate direct (i.e.static BinaryWriterBinaryWriter.newHeapInstance(BufferAllocator alloc) Creates a newBinaryWriterthat will allocate heap buffers ofBinaryWriter.DEFAULT_CHUNK_SIZEas necessary.static BinaryWriterBinaryWriter.newHeapInstance(BufferAllocator alloc, int chunkSize) Creates a newBinaryWriterthat will allocate heap buffers ofchunkSizeas necessary.(package private) static BinaryWriterBinaryWriter.newSafeDirectInstance(BufferAllocator alloc, int chunkSize) (package private) static BinaryWriterBinaryWriter.newSafeHeapInstance(BufferAllocator alloc, int chunkSize) (package private) static BinaryWriterBinaryWriter.newUnsafeDirectInstance(BufferAllocator alloc, int chunkSize) (package private) static BinaryWriterBinaryWriter.newUnsafeHeapInstance(BufferAllocator alloc, int chunkSize) Constructors in com.google.protobuf with parameters of type BufferAllocatorModifierConstructorDescriptionprivateBinaryWriter(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)