classes.io.netty.buffer.UnpooledUnsafeDirectByteBuf.class Maven / Gradle / Ivy
???? 2?
l ? ? m
? ? ?
?
?
k
k
k
k ?
_
_
_ k
_
_
k
_
k
k
k k k!
k"
k#$
k%
k&
_'
_(
)*
_+
_,
k-./
4 ?
k0
12
13
14
15
16
17
18
19
1:
1;
1<
1=
k> k?
k@
1A
1B
1C
1D
1E
1F
1G
1H
1I
1J
1K
1L
1M
kN
kO
_P
)'QR
kS
TU
1VWXY
TZ[
k\
1]
k^
_`
da
lb
1c
kd ke
kfgh alloc "Lio/netty/buffer/ByteBufAllocator; tmpNioBuf Ljava/nio/ByteBuffer; capacity I doNotFree Z buffer
memoryAddress J '(Lio/netty/buffer/ByteBufAllocator;II)V Code LineNumberTable LocalVariableTable this -Lio/netty/buffer/UnpooledUnsafeDirectByteBuf; initialCapacity maxCapacity
StackMapTablegi ;(Lio/netty/buffer/ByteBufAllocator;Ljava/nio/ByteBuffer;I)V
initialBuffer <(Lio/netty/buffer/ByteBufAllocator;Ljava/nio/ByteBuffer;IZ)V doFree[ allocateDirect (I)Ljava/nio/ByteBuffer;
freeDirect (Ljava/nio/ByteBuffer;)V
setByteBuffer (Ljava/nio/ByteBuffer;Z)V oldBuffer tryFree isDirect ()Z ()I (I)Lio/netty/buffer/ByteBuf; newBuffer newCapacity readerIndex writerIndex oldCapacity $()Lio/netty/buffer/ByteBufAllocator; order ()Ljava/nio/ByteOrder; hasArray array ()[B arrayOffset hasMemoryAddress ()J _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; dst Lio/netty/buffer/ByteBuf; dstIndex length (I[BII)Lio/netty/buffer/ByteBuf; [B 1(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf; readBytes 0(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf; _setByte (II)V value _setShort _setShortLE
_setMedium _setMediumLE _setInt _setIntLE _setLong (IJ)V
_setLongLE setBytes src srcIndex 3(ILjava/io/OutputStream;I)Lio/netty/buffer/ByteBuf; out Ljava/io/OutputStream;
Exceptionsj -(ILjava/nio/channels/GatheringByteChannel;I)I (Ljava/nio/channels/GatheringByteChannel; .(ILjava/nio/channels/GatheringByteChannel;IZ)I tmpBuf internal %(ILjava/nio/channels/FileChannel;JI)I Ljava/nio/channels/FileChannel; position &(ILjava/nio/channels/FileChannel;JIZ)I ,(Ljava/nio/channels/GatheringByteChannel;I)I $(Ljava/nio/channels/FileChannel;JI)I (ILjava/io/InputStream;I)I in Ljava/io/InputStream; .(ILjava/nio/channels/ScatteringByteChannel;I)I ignored *Ljava/nio/channels/ClosedChannelException; )Ljava/nio/channels/ScatteringByteChannel;kYl nioBufferCount
nioBuffers (II)[Ljava/nio/ByteBuffer; copy (II)Lio/netty/buffer/ByteBuf; internalNioBuffer (II)Ljava/nio/ByteBuffer; ()Ljava/nio/ByteBuffer; nioBuffer
deallocate ()V unwrap ()Lio/netty/buffer/ByteBuf; addr newSwappedByteBuf "()Lio/netty/buffer/SwappedByteBuf; setZero writeZero wIndex
SourceFile UnpooledUnsafeDirectByteBuf.java xm java/lang/NullPointerException xn "java/lang/IllegalArgumentException java/lang/StringBuilder x ? initialCapacity: opoqrs
maxCapacity: %initialCapacity(%d) > maxCapacity(%d) java/lang/Objecttuvwxy m n ? ? ? ? x ? ? ? %initialBuffer is not a direct buffer.z ? $initialBuffer is a read-only buffer.{ ? s t| ?}~ ?? ? ??? ? u p ? ??? v w o p q r? ? ? ?
newCapacity: ? ? ? ? ?? q ????????? ? 'java/lang/UnsupportedOperationException
direct buffer ? ???????????????????? ?? ?? ???m ? r ? ??????????????????? ?? ?? ?? ?? ? ? ? ?? ???? ? ?l?? ??k?? (java/nio/channels/ClosedChannelException?? java/nio/ByteBuffer ? ? ??? ?? ? *io/netty/buffer/UnsafeDirectSwappedByteBuf x? ? ? ??? ? ? r ? ? +io/netty/buffer/UnpooledUnsafeDirectByteBuf /io/netty/buffer/AbstractReferenceCountedByteBuf io/netty/buffer/ByteBufAllocator java/io/IOException 'java/nio/channels/ScatteringByteChannel java/nio/channels/FileChannel (I)V (Ljava/lang/String;)V append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; java/lang/Integer valueOf (I)Ljava/lang/Integer; java/lang/String format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
isReadOnly remaining slice java/nio/ByteOrder
BIG_ENDIAN Ljava/nio/ByteOrder; +(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer; (io/netty/util/internal/PlatformDependent freeDirectBuffer directBufferAddress (Ljava/nio/ByteBuffer;)J ensureAccessible (I)Ljava/nio/Buffer; java/nio/Buffer limit put ,(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer; clear ()Ljava/nio/Buffer; setIndex !io/netty/buffer/UnsafeByteBufUtil getByte (J)B getShort (J)S
getShortLE getUnsignedMedium (J)I getUnsignedMediumLE getInt getIntLE getLong (J)J getLongLE A(Lio/netty/buffer/AbstractByteBuf;JILio/netty/buffer/ByteBuf;II)V *(Lio/netty/buffer/AbstractByteBuf;JI[BII)V ;(Lio/netty/buffer/AbstractByteBuf;JILjava/nio/ByteBuffer;)V checkReadableBytes setByte (JI)V setShort
setShortLE setMedium setMediumLE setInt setIntLE setLong (JJ)V setLongLE =(Lio/netty/buffer/AbstractByteBuf;JILjava/io/OutputStream;I)V duplicate &java/nio/channels/GatheringByteChannel write (Ljava/nio/ByteBuffer;)I (Ljava/nio/ByteBuffer;J)I <(Lio/netty/buffer/AbstractByteBuf;JILjava/io/InputStream;I)I read ?(Lio/netty/buffer/AbstractByteBuf;JII)Lio/netty/buffer/ByteBuf;
checkIndex isUnaligned $(Lio/netty/buffer/AbstractByteBuf;)V '(Lio/netty/buffer/AbstractByteBuf;JII)V ensureWritable ! k l m n o p q r s t u p v w ? x y z ?*? +?
? Y? ?? ? Y? Y? ? ?
? ? ?? ? Y? Y?
? ?
? ? ?? "? Y? Y? SY? S? ? ?*+? **? ? ? { 2 4 5 6 8 9 2 ; 6 <