io.netty.buffer.PooledDirectByteBuf.class Maven / Gradle / Ivy
???? 2l #io/netty/buffer/PooledDirectByteBuf 6Lio/netty/buffer/PooledByteBuf; io/netty/buffer/PooledByteBuf PooledDirectByteBuf.java %io/netty/buffer/PooledDirectByteBuf$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/PooledDirectByteBuf; get ()Ljava/lang/Object;
reuse (I)V
maxCapacity I buf %Lio/netty/buffer/PooledDirectByteBuf; #(Lio/netty/util/Recycler$Handle;I)V ! "
# this recyclerHandle FLio/netty/util/Recycler$Handle; Lio/netty/util/Recycler$Handle; newInternalNioBuffer ,(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer; java/nio/ByteBuffer + duplicate ()Ljava/nio/ByteBuffer; - .
, / memory Ljava/nio/ByteBuffer; isDirect ()Z _getByte (I)B Ljava/lang/Object; 1 7 8 idx (I)I : ;
< 6
, > index _getShort (I)S getShort C B
, D _getShortLE A B
G io/netty/buffer/ByteBufUtil I swapShort (S)S K L
J M _getUnsignedMedium _getUnsignedMediumLE _getInt getInt R ;
, S _getIntLE Q ;
V swapInt X ;
J Y _getLong (I)J getLong ] \
, ^
_getLongLE [ \
a swapLong (J)J c d
J e getBytes 7(ILio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf; io/netty/buffer/ByteBuf i capacity ()I k l
j m
checkDstIndex (IIII)V o p
q hasArray s 4
j t array ()[B v w
j x arrayOffset z l
j { (I[BII)Lio/netty/buffer/ByteBuf; g }
~ nioBufferCount ? l
j ?
nioBuffers (II)[Ljava/nio/ByteBuffer; ? ?
j ? [Ljava/nio/ByteBuffer; ? remaining ? l
, ? 1(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf; g ?
? setBytes ? h
j ? bbLen bb dst Lio/netty/buffer/ByteBuf; dstIndex length (I[BIIZ)V g ?
? [B internalNioBuffer ? .
? clear ()Ljava/nio/Buffer; ? ?
, ? java/nio/Buffer ? position (I)Ljava/nio/Buffer; ? ?
? ? limit ? ?
? ? ([BII)Ljava/nio/ByteBuffer; ?
, ? tmpBuf internal Z readBytes ([BII)Lio/netty/buffer/ByteBuf; checkReadableBytes ?
? readerIndex ? ? (ILjava/nio/ByteBuffer;Z)V g ?
?
checkIndex (II)V ? ?
? put ? *
, ? 0(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf; 3(ILjava/io/OutputStream;I)Lio/netty/buffer/ByteBuf; java/io/IOException ? (ILjava/io/OutputStream;IZ)V g ?
? out Ljava/io/OutputStream; ? ([B)Ljava/nio/ByteBuffer; ?
, ? java/io/OutputStream ? write ([B)V ? ?
? ? tmp 2(Ljava/io/OutputStream;I)Lio/netty/buffer/ByteBuf; -(ILjava/nio/channels/GatheringByteChannel;I)I .(ILjava/nio/channels/GatheringByteChannel;IZ)I g ?
? (Ljava/nio/channels/GatheringByteChannel; &java/nio/channels/GatheringByteChannel ? (Ljava/nio/ByteBuffer;)I ? ? ? ? %(ILjava/nio/channels/FileChannel;JI)I &(ILjava/nio/channels/FileChannel;JIZ)I g ?
? Ljava/nio/channels/FileChannel; J java/nio/channels/FileChannel ? (Ljava/nio/ByteBuffer;J)I ? ?
? ? ,(Ljava/nio/channels/GatheringByteChannel;I)I $(Ljava/nio/channels/FileChannel;JI)I _setByte (IB)Ljava/nio/ByteBuffer; ? ?
, ? value _setShort putShort (IS)Ljava/nio/ByteBuffer; ? ?
, ? _setShortLE ? ?
?
_setMedium _setMediumLE _setInt putInt (II)Ljava/nio/ByteBuffer;
, _setIntLE ? ?
_setLong (IJ)V putLong (IJ)Ljava/nio/ByteBuffer;
,
_setLongLE
checkSrcIndex p
? }
? ?
g h
j src srcIndex ? ?
, (ILjava/io/InputStream;I)I java/io/InputStream read ([B)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; ?
?0 copy (II)Lio/netty/buffer/ByteBuf; alloc $()Lio/netty/buffer/ByteBufAllocator;45
6 l
8 io/netty/buffer/ByteBufAllocator: directBuffer<3;=
writeBytes 6(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;?@
jA nioBuffer
, ? sliceE .
,FC
H 'java/lang/UnsupportedOperationExceptionJ
direct bufferL (Ljava/lang/String;)V !N
KO hasMemoryAddress
memoryAddress ()J ()V !T
KU )(Ljava/lang/Object;)Ljava/nio/ByteBuffer; ) *
X J(Lio/netty/util/Recycler$Handle;ILio/netty/buffer/PooledDirectByteBuf$1;)V
# x0 x1 x2 'Lio/netty/buffer/PooledDirectByteBuf$1;
U Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable J(Lio/netty/util/Recycler$Handle;I)V
StackMapTable
Exceptions
SourceFile InnerClasses 0 b 9 c M ? ? ? L+? +? d
e (
) * ! " c [ *+? $? d % &