@Test public void testWrapRetainedSlice() { assertWrapped(newBuffer(8).retainedSlice()); }
@Override public ByteBuf retainedSlice() { return new SimpleLeakAwareByteBuf(super.retainedSlice(), leak); }
SimpleLeakAwareCompositeByteBuf extends WrappedCompositeByteBuf { @Override public ByteBuf retainedSlice() { return new SimpleLeakAwareByteBuf(super.retainedSlice(), leak); } }
SimpleLeakAwareCompositeByteBuf extends WrappedCompositeByteBuf { @Override public ByteBuf retainedSlice() { return new SimpleLeakAwareByteBuf(super.retainedSlice(), leak); } SimpleLeakAwareCompositeByteBuf(CompositeByteBuf wrapped, ResourceLeak leak); }
SimpleLeakAwareCompositeByteBuf extends WrappedCompositeByteBuf { @Override public ByteBuf retainedSlice() { return new SimpleLeakAwareByteBuf(super.retainedSlice(), leak); } SimpleLeakAwareCompositeByteBuf(CompositeByteBuf wrapped, ResourceLeak leak); @Override boolean release(); @Override boolean release(int decrement); @Override ByteBuf order(ByteOrder endianness); @Override ByteBuf slice(); @Override ByteBuf retainedSlice(); @Override ByteBuf slice(int index, int length); @Override ByteBuf retainedSlice(int index, int length); @Override ByteBuf duplicate(); @Override ByteBuf retainedDuplicate(); @Override ByteBuf readSlice(int length); @Override ByteBuf readRetainedSlice(int length); @Override ByteBuf asReadOnly(); }
SimpleLeakAwareCompositeByteBuf extends WrappedCompositeByteBuf { @Override public ByteBuf retainedSlice() { return new SimpleLeakAwareByteBuf(super.retainedSlice(), leak); } SimpleLeakAwareCompositeByteBuf(CompositeByteBuf wrapped, ResourceLeak leak); @Override boolean release(); @Override boolean release(int decrement); @Override ByteBuf order(ByteOrder endianness); @Override ByteBuf slice(); @Override ByteBuf retainedSlice(); @Override ByteBuf slice(int index, int length); @Override ByteBuf retainedSlice(int index, int length); @Override ByteBuf duplicate(); @Override ByteBuf retainedDuplicate(); @Override ByteBuf readSlice(int length); @Override ByteBuf readRetainedSlice(int length); @Override ByteBuf asReadOnly();  }