io.netty.buffer.PooledHeapByteBuf.class Maven / Gradle / Ivy
???? 2f !io/netty/buffer/PooledHeapByteBuf #Lio/netty/buffer/PooledByteBuf<[B>; io/netty/buffer/PooledByteBuf PooledHeapByteBuf.java #io/netty/buffer/PooledHeapByteBuf$1 io/netty/util/Recycler$Handle io/netty/util/Recycler Handle RECYCLER Lio/netty/util/Recycler; =Lio/netty/util/Recycler; newInstance &(I)Lio/netty/buffer/PooledHeapByteBuf; get ()Ljava/lang/Object;
reuse (I)V
maxCapacity I buf #Lio/netty/buffer/PooledHeapByteBuf; #(Lio/netty/util/Recycler$Handle;I)V ! "
# this recyclerHandle ELio/netty/util/Recycler$Handle<+Lio/netty/buffer/PooledHeapByteBuf;>; Lio/netty/util/Recycler$Handle; isDirect ()Z _getByte (I)B memory Ljava/lang/Object; - . / [B 1 idx (I)I 3 4
5 io/netty/buffer/HeapByteBufUtil 7 getByte ([BI)B 9 :
8 ; index _getShort (I)S getShort ([BI)S @ A
8 B _getShortLE
getShortLE E A
8 F _getUnsignedMedium getUnsignedMedium ([BI)I I J
8 K _getUnsignedMediumLE getUnsignedMediumLE N J
8 O _getInt getInt R J
8 S _getIntLE getIntLE V J
8 W _getLong (I)J getLong ([BI)J [ \
8 ]
_getLongLE getLongLE ` \
8 a getBytes 7(ILio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf; io/netty/buffer/ByteBuf e capacity ()I g h
f i
checkDstIndex (IIII)V k l
m hasMemoryAddress o *
f p
memoryAddress ()J r s
f t (io/netty/util/internal/PlatformDependent v
copyMemory ([BIJJ)V x y
w z hasArray | *
f } array ()[B ?
f ? arrayOffset ? h
f ? (I[BII)Lio/netty/buffer/ByteBuf; c ?
? setBytes ? ?
f ? dst Lio/netty/buffer/ByteBuf; dstIndex length java/lang/System ? arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V ? ?
? ? 1(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf; java/nio/ByteBuffer ? remaining ? h
? ?
checkIndex (II)V ? ?
? put ([BII)Ljava/nio/ByteBuffer; ? ?
? ? Ljava/nio/ByteBuffer; 3(ILjava/io/OutputStream;I)Lio/netty/buffer/ByteBuf; java/io/IOException ? java/io/OutputStream ? write ([BII)V ? ?
? ? out Ljava/io/OutputStream; -(ILjava/nio/channels/GatheringByteChannel;I)I .(ILjava/nio/channels/GatheringByteChannel;IZ)I c ?
? (Ljava/nio/channels/GatheringByteChannel; internalNioBuffer ()Ljava/nio/ByteBuffer; ? ?
? wrap ([B)Ljava/nio/ByteBuffer; ? ?
? ? clear ()Ljava/nio/Buffer; ? ?
? ? java/nio/Buffer ? position (I)Ljava/nio/Buffer; ? ?
? ? limit ? ?
? ? &java/nio/channels/GatheringByteChannel ? (Ljava/nio/ByteBuffer;)I ? ? ? ? tmpBuf internal Z %(ILjava/nio/channels/FileChannel;JI)I &(ILjava/nio/channels/FileChannel;JIZ)I c ?
? Ljava/nio/channels/FileChannel; J java/nio/channels/FileChannel ? (Ljava/nio/ByteBuffer;J)I ? ?
? ? readBytes ,(Ljava/nio/channels/GatheringByteChannel;I)I checkReadableBytes ?
? readerIndex ? ? $(Ljava/nio/channels/FileChannel;JI)I _setByte setByte ? ?
8 ? value _setShort setShort ? ?
8 ? _setShortLE
setShortLE ? ?
8 ?
_setMedium setMedium ? ?
8 ? _setMediumLE setMediumLE ? ?
8 ? _setInt setInt ? ?
8 ? _setIntLE setIntLE ?
8 _setLong (IJ)V setLong ([BIJ)V
8
_setLongLE setLongLE
8
checkSrcIndex
l
(J[BIJ)V x
w
?
f ? src srcIndex ?
? (ILjava/io/InputStream;I)I java/io/InputStream read ([BII)I
in Ljava/io/InputStream; .(ILjava/nio/channels/ScatteringByteChannel;I)I (java/nio/channels/ClosedChannelException# 'java/nio/channels/ScatteringByteChannel% ?&' ignored *Ljava/nio/channels/ClosedChannelException; )Ljava/nio/channels/ScatteringByteChannel; ?
?, copy (II)Lio/netty/buffer/ByteBuf; alloc $()Lio/netty/buffer/ByteBufAllocator;01
2 h
4 io/netty/buffer/ByteBufAllocator6
heapBuffer8/79
writeBytes ([BII)Lio/netty/buffer/ByteBuf;;<
f= nioBufferCount
nioBuffers (II)[Ljava/nio/ByteBuffer; nioBuffer (II)Ljava/nio/ByteBuffer;BC
D ? ?
?F sliceH ?
?I ensureAccessible ()VKL
M offsetO P 'java/lang/UnsupportedOperationExceptionR !L
ST newInternalNioBuffer )(Ljava/lang/Object;)Ljava/nio/ByteBuffer;V ?
X
T Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable I(Lio/netty/util/Recycler$Handle<+Lio/netty/buffer/PooledHeapByteBuf;>;I)V
StackMapTable
Exceptions
SourceFile InnerClasses \ 2 ] M ? ? ? L+? +? ^
_ '
( ) ! " ] [ *+? $? ^ % &