static PooledUnsafeDirectByteBuf newInstance(int maxCapacity) {
   PooledUnsafeDirectByteBuf buf = RECYCLER.get();
   buf.setRefCnt(1);
   buf.maxCapacity(maxCapacity);
   return buf;
 }
Ejemplo n.º 2
0
 static PooledHeapByteBuf newInstance(int maxCapacity) {
   PooledHeapByteBuf buf = RECYCLER.get();
   buf.maxCapacity(maxCapacity);
   return buf;
 }
Ejemplo n.º 3
0
 static PooledDirectByteBuf newInstance(int var0) {
   PooledDirectByteBuf var1 = (PooledDirectByteBuf) RECYCLER.get();
   var1.setRefCnt(1);
   var1.maxCapacity(var0);
   return var1;
 }