com.groupbyinc.flux.common.netty.buffer.UnpooledUnsafeDirectByteBuf.class Maven / Gradle / Ivy
???? 2? Ccom/groupbyinc/flux/common/netty/buffer/UnpooledUnsafeDirectByteBuf Gcom/groupbyinc/flux/common/netty/buffer/AbstractReferenceCountedByteBuf UnpooledUnsafeDirectByteBuf.java alloc :Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator; tmpNioBuf Ljava/nio/ByteBuffer; capacity I doNotFree Z buffer
memoryAddress J ?(Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator;II)V (I)V
java/lang/NullPointerException (Ljava/lang/String;)V
8com/groupbyinc/flux/common/netty/buffer/ByteBufAllocator "java/lang/IllegalArgumentException java/lang/StringBuilder ()V "
! # initialCapacity: % append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ' (
! ) (I)Ljava/lang/StringBuilder; ' +
! , toString ()Ljava/lang/String; . /
! 0
maxCapacity: 3 %initialCapacity(%d) > maxCapacity(%d) 5 java/lang/Object 7 java/lang/Integer 9 valueOf (I)Ljava/lang/Integer; ; <
: = java/lang/String ? format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; A B
@ C E allocateDirect (I)Ljava/nio/ByteBuffer; G H
I
setByteBuffer (Ljava/nio/ByteBuffer;Z)V K L
M this ELcom/groupbyinc/flux/common/netty/buffer/UnpooledUnsafeDirectByteBuf; initialCapacity maxCapacity S(Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator;Ljava/nio/ByteBuffer;I)V java/nio/ByteBuffer T slice ()Ljava/nio/ByteBuffer; V W
U X T(Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator;Ljava/nio/ByteBuffer;IZ)V Z
[
initialBuffer ] isDirect ()Z _ `
U a %initialBuffer is not a direct buffer. c
isReadOnly e `
U f $initialBuffer is a read-only buffer. h remaining ()I j k
U l
n java/nio/ByteOrder p
BIG_ENDIAN Ljava/nio/ByteOrder; r s q t order +(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer; v w
U x writerIndex 4(I)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; z {
| doFree
U I
freeDirect (Ljava/nio/ByteBuffer;)V @com/groupbyinc/flux/common/netty/util/internal/PlatformDependent ? freeDirectBuffer ? ?
? ? ? ? ?
? directBufferAddress (Ljava/nio/ByteBuffer;)J ? ?
? ? ? ?
? oldBuffer tryFree checkNewCapacity ?
? readerIndex ? k
? z k
? position (I)Ljava/nio/Buffer; ? ?
U ?
k
U ? java/nio/Buffer ? limit ? ?
? ? put ,(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer; ? ?
U ? clear ()Ljava/nio/Buffer; ? ?
U ? setIndex 5(II)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; ? ?
? newBuffer newCapacity oldCapacity <()Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator; ()Ljava/nio/ByteOrder; hasArray array ()[B 'java/lang/UnsupportedOperationException ?
direct buffer ?
? arrayOffset hasMemoryAddress ()J ensureAccessible ? "
? _getByte (I)B addr (I)J ? ?
? 9com/groupbyinc/flux/common/netty/buffer/UnsafeByteBufUtil ? getByte (J)B ? ?
? ? index _getShort (I)S getShort (J)S ? ?
? ? _getShortLE
getShortLE ? ?
? ? _getUnsignedMedium (I)I getUnsignedMedium (J)I ? ?
? ? _getUnsignedMediumLE getUnsignedMediumLE ? ?
? ? _getInt getInt ? ?
? ? _getIntLE getIntLE ? ?
? ? _getLong getLong (J)J ? ?
? ?
_getLongLE getLongLE ? ?
? ? getBytes g(ILcom/groupbyinc/flux/common/netty/buffer/ByteBuf;II)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; q(Lcom/groupbyinc/flux/common/netty/buffer/AbstractByteBuf;JILcom/groupbyinc/flux/common/netty/buffer/ByteBuf;II)V ? ?
? ? dst 1Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; dstIndex length 8(I[BII)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; B(Lcom/groupbyinc/flux/common/netty/buffer/AbstractByteBuf;JI[BII)V ?
? [B I(ILjava/nio/ByteBuffer;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; S(Lcom/groupbyinc/flux/common/netty/buffer/AbstractByteBuf;JILjava/nio/ByteBuffer;)V ?
? readBytes H(Ljava/nio/ByteBuffer;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; checkReadableBytes
? ?
_setByte (II)V setByte (JI)V
? value _setShort setShort
? _setShortLE
setShortLE"
?#
_setMedium setMedium&
?' _setMediumLE setMediumLE*
?+ _setInt setInt.
?/ _setIntLE setIntLE2
?3 _setLong (IJ)V setLong (JJ)V78
?9
_setLongLE setLongLE<8
?= setBytes? ?
?@ src srcIndex?
?D?
?F K(ILjava/io/OutputStream;I)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; java/io/IOExceptionI U(Lcom/groupbyinc/flux/common/netty/buffer/AbstractByteBuf;JILjava/io/OutputStream;I)V ?K
?L out Ljava/io/OutputStream; -(ILjava/nio/channels/GatheringByteChannel;I)I .(ILjava/nio/channels/GatheringByteChannel;IZ)I ?Q
R (Ljava/nio/channels/GatheringByteChannel; internalNioBufferU W
V duplicateX W
UY
? ? &java/nio/channels/GatheringByteChannel\ write (Ljava/nio/ByteBuffer;)I^_]` tmpBuf internal %(ILjava/nio/channels/FileChannel;JI)I &(ILjava/nio/channels/FileChannel;JIZ)I ?e
f Ljava/nio/channels/FileChannel; java/nio/channels/FileChanneli (Ljava/nio/ByteBuffer;J)I^k
jl ,(Ljava/nio/channels/GatheringByteChannel;I)I $(Ljava/nio/channels/FileChannel;JI)I (ILjava/io/InputStream;I)I T(Lcom/groupbyinc/flux/common/netty/buffer/AbstractByteBuf;JILjava/io/InputStream;I)I?q
?r in Ljava/io/InputStream; .(ILjava/nio/channels/ScatteringByteChannel;I)I (java/nio/channels/ClosedChannelExceptionw 'java/nio/channels/ScatteringByteChannely read{_z| ignored *Ljava/nio/channels/ClosedChannelException; )Ljava/nio/channels/ScatteringByteChannel;{k
j? nioBufferCount
nioBuffers (II)[Ljava/nio/ByteBuffer; nioBuffer (II)Ljava/nio/ByteBuffer;??
? copy o(Lcom/groupbyinc/flux/common/netty/buffer/AbstractByteBuf;JII)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;??
??
checkIndex?
?
deallocate unwrap 3()Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; newSwappedByteBuf :()Lcom/groupbyinc/flux/common/netty/buffer/SwappedByteBuf; isUnaligned? `
?? Bcom/groupbyinc/flux/common/netty/buffer/UnsafeDirectSwappedByteBuf? <(Lcom/groupbyinc/flux/common/netty/buffer/AbstractByteBuf;)V ?
????
? setZero?
?? writeZero ensureWritable? {
? z ? wIndex Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile !
? ? ?*? +?
? Y? ?? ? Y? !Y? $&? *? -? 1? 2?? ? Y? !Y? $4? *? -? 1? 2?? "? Y6? 8Y? >SY? >S? D? 2?*+? F**? J? N? ? * ? O P ? ? Q ? R ? : 4 5 6 8 9 2 ; 6 <