fixedAllocator static method

ByteBufAllocator fixedAllocator(
  1. int size
)

Creates a new ByteBufAllocator with both ByteBufAllocator.capacity and ByteBufAllocator.maxCapacity being set to size.

Implementation

static ByteBufAllocator fixedAllocator(int size) =>
    allocator(initialCapacity: size, maxCapacity: size);