classes.io.netty.buffer.PooledDirectByteBuf.class Maven / Gradle / Ivy
???? 2
? ?
? ? ?
?
S ?
? ? ?
?
?
?
?
? ?
?
?
? ?
?
?
? ?
? ?
?
? ?
? ?
? ?
?
?
?
?
?
!
"
#
$
%
&
'
?(
)
*+,-.
/
0
123
?4
5
678
L9
L:
;<
Q:= InnerClasses RECYCLER Lio/netty/util/Recycler; Signature ?Lio/netty/util/Recycler; newInstance ((I)Lio/netty/buffer/PooledDirectByteBuf; Code LineNumberTable LocalVariableTable maxCapacity I buf %Lio/netty/buffer/PooledDirectByteBuf; > Handle #(Lio/netty/util/Recycler$Handle;I)V this recyclerHandle Lio/netty/util/Recycler$Handle; LocalVariableTypeTable FLio/netty/util/Recycler$Handle; J(Lio/netty/util/Recycler$Handle;I)V newInternalNioBuffer ,(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer; memory Ljava/nio/ByteBuffer; isDirect ()Z _getByte (I)B index _getShort (I)S _getShortLE _getUnsignedMedium (I)I _getUnsignedMediumLE _getInt _getIntLE _getLong (I)J
_getLongLE getBytes 7(ILio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf; bbLen bb arr$ [Ljava/nio/ByteBuffer; len$ i$ dst Lio/netty/buffer/ByteBuf; dstIndex length
StackMapTable ? (I[BII)Lio/netty/buffer/ByteBuf; [B (I[BIIZ)V tmpBuf internal Z ? readBytes ([BII)Lio/netty/buffer/ByteBuf; 1(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf; (ILjava/nio/ByteBuffer;Z)V bytesToCopy 0(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf; 3(ILjava/io/OutputStream;I)Lio/netty/buffer/ByteBuf; out Ljava/io/OutputStream;
Exceptions? (ILjava/io/OutputStream;IZ)V tmp ? 2(Ljava/io/OutputStream;I)Lio/netty/buffer/ByteBuf; -(ILjava/nio/channels/GatheringByteChannel;I)I (Ljava/nio/channels/GatheringByteChannel; .(ILjava/nio/channels/GatheringByteChannel;IZ)I %(ILjava/nio/channels/FileChannel;JI)I Ljava/nio/channels/FileChannel; position J &(ILjava/nio/channels/FileChannel;JIZ)I ,(Ljava/nio/channels/GatheringByteChannel;I)I $(Ljava/nio/channels/FileChannel;JI)I _setByte (II)V value _setShort _setShortLE
_setMedium _setMediumLE _setInt _setIntLE _setLong (IJ)V
_setLongLE setBytes src srcIndex (ILjava/io/InputStream;I)I in Ljava/io/InputStream; .(ILjava/nio/channels/ScatteringByteChannel;I)I ignored *Ljava/nio/channels/ClosedChannelException; )Ljava/nio/channels/ScatteringByteChannel; ?@.A copy (II)Lio/netty/buffer/ByteBuf; nioBufferCount ()I nioBuffer (II)Ljava/nio/ByteBuffer;
nioBuffers (II)[Ljava/nio/ByteBuffer; internalNioBuffer hasArray array ()[B arrayOffset hasMemoryAddress
memoryAddress ()J )(Ljava/lang/Object;)Ljava/nio/ByteBuffer; J(Lio/netty/util/Recycler$Handle;ILio/netty/buffer/PooledDirectByteBuf$1;)V x0 x1 x2 'Lio/netty/buffer/PooledDirectByteBuf$1; ()V 6Lio/netty/buffer/PooledByteBuf;
SourceFile PooledDirectByteBuf.java c f V WBCD #io/netty/buffer/PooledDirectByteBufEFGH oI java/nio/ByteBufferJ zC tK w v wLMNO z | zP zQ ~ RSTU ?VW ? r ? ? ? ? ? ? ? ? ? ?X ? ? ? ? ? ? ? ?HYZ[ ?\]\C^_F` ` ? ?aFbcde n ? ?a ?Cfghi ? ?jhk ? ?Ahlemno ? ?p ? ? ?qr ? ?sW ? ? ? ? ? ?e^tuv@uk (java/nio/channels/ClosedChannelExceptionulwx _ ?yz ?{|}H ? ? 'java/lang/UnsupportedOperationException
direct buffer c~ c ? m n %io/netty/buffer/PooledDirectByteBuf$1 io/netty/buffer/PooledByteBuf io/netty/util/Recycler$Handle java/io/IOException 'java/nio/channels/ScatteringByteChannel java/nio/channels/FileChannel io/netty/util/Recycler get ()Ljava/lang/Object; reuse (I)V duplicate ()Ljava/nio/ByteBuffer; Ljava/lang/Object; idx getShort io/netty/buffer/ByteBufUtil swapShort (S)S getInt swapInt getLong swapLong (J)J io/netty/buffer/ByteBuf capacity
checkDstIndex (IIII)V remaining clear ()Ljava/nio/Buffer; java/nio/Buffer (I)Ljava/nio/Buffer; limit ([BII)Ljava/nio/ByteBuffer; checkReadableBytes readerIndex
checkIndex java/lang/Math min (II)I put ([B)Ljava/nio/ByteBuffer; java/io/OutputStream write ([B)V &java/nio/channels/GatheringByteChannel (Ljava/nio/ByteBuffer;)I (Ljava/nio/ByteBuffer;J)I (IB)Ljava/nio/ByteBuffer; putShort (IS)Ljava/nio/ByteBuffer; putInt putLong (IJ)Ljava/nio/ByteBuffer;
checkSrcIndex java/io/InputStream read ([B)I alloc $()Lio/netty/buffer/ByteBufAllocator; io/netty/buffer/ByteBufAllocator directBuffer
writeBytes 6(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf; slice (Ljava/lang/String;)V 0 S V W X Y 9 Z [ \ M ? ? ? L+? +? ] (
) * ^ _ `
a b c f \ [ *+? ? ]
. / ^ g b h i _ ` j h k X l m n \ 9 +? ? ] 3 ^ g b o p q r \ , ? ] 8 ^ g b s t \ D *? ? *?
? ? ] = ^ g b u ` v w \ D *? ? *?
? ? ] B ^ g b u ` x w \ = *?
? ? ] G ^ g b u ` y z \ x @*?
<*? ? ? ?~x*? ? `? ?~x?*? ? `? ?~?? ]
L M ^ @ g b @ u ` { z \ x @*?
<*? ? ? ?~*? ? `? ?~x?*? ? `? ?~x?? ]
T U ^ @ g b @ u ` | z \ D *? ? *?
? ? ] \ ^ g b u ` } z \ = *? ? ? ] a ^ g b u ` ~ \ D *? ? *?
? ? ] f ^ g b u ` ? \ = *? ? ? ] k ^ g b u ` ? ? \ 9
w*,? ? ,? ? *,? ,? `? W? P,? ? ?,? :?66? $2:? 6 *? W `??ۧ
,*? W*? ] . p q r ( s / t N u U v ] w b t k z u | ^ f
U
? ` N ? p 8 0 ? ? = + ? ` @ ( ? ` w g b w u ` w ? ? w ? ` w ? ` ? (? ?? ' ? ? \ b *,? *? ]
?
? ^ 4 g b u ` ? ? ? ` ? ` ? ? \ ? F*,?? ? *? !:? *? ? ? :*?
<? "? #`? $W,? %W? ] " ?
? ? ? $ ? * ? ; ? E ? ^ R ? p F g b F u ` F ? ? F ? ` F ? ` F ? ? $ " ? p ? ? ? ? ? \ q *? &**? '+? *Y? '`? '*? ] ? ? ? ? ^ * g b ? ? ? ` ? ` ? ? \ K *,? (*? ]
? ? ^ g b u ` ? p ? ? \ ? L*? )*? *d,? ? +6? *? !:? *? ? ? :*?
<? "? #`? $W,? ,W? ] &