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