com.groupbyinc.flux.common.netty.buffer.ReadOnlyByteBufferBuf.class Maven / Gradle / Ivy
???? 2z =com/groupbyinc/flux/common/netty/buffer/ReadOnlyByteBufferBuf Gcom/groupbyinc/flux/common/netty/buffer/AbstractReferenceCountedByteBuf ReadOnlyByteBufferBuf.java buffer Ljava/nio/ByteBuffer; allocator :Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator; tmpNioBuf R(Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator;Ljava/nio/ByteBuffer;)V java/nio/ByteBuffer
remaining ()I
(I)V
isReadOnly ()Z
"java/lang/IllegalArgumentException java/lang/StringBuilder ()V
must be a readonly buffer: ! append -(Ljava/lang/String;)Ljava/lang/StringBuilder; # $
% 9com/groupbyinc/flux/common/netty/util/internal/StringUtil ' simpleClassName &(Ljava/lang/Object;)Ljava/lang/String; ) *
( + toString ()Ljava/lang/String; - .
/ (Ljava/lang/String;)V 1
2 8com/groupbyinc/flux/common/netty/buffer/ByteBufAllocator 4 6 slice ()Ljava/nio/ByteBuffer; 8 9
: java/nio/ByteOrder <
BIG_ENDIAN Ljava/nio/ByteOrder; > ? = @ order +(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer; B C
D F limit H
I writerIndex 4(I)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; K L
M this ?Lcom/groupbyinc/flux/common/netty/buffer/ReadOnlyByteBufferBuf;
deallocate getByte (I)B ensureAccessible T
U _getByte W S
X index I get \ S
] getShort (I)S _getShort a `
b _ `
d
getShortLE _getShortLE g `
h 3com/groupbyinc/flux/common/netty/buffer/ByteBufUtil j swapShort (S)S l m
k n getUnsignedMedium (I)I _getUnsignedMedium r q
s R S
u getUnsignedMediumLE _getUnsignedMediumLE x q
y getInt _getInt | q
} { q
getIntLE _getIntLE ? q
? swapInt ? q
k ? getLong (I)J _getLong ? ?
? ? ?
? getLongLE
_getLongLE ? ?
? swapLong (J)J ? ?
k ? getBytes g(ILcom/groupbyinc/flux/common/netty/buffer/ByteBuf;II)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; /com/groupbyinc/flux/common/netty/buffer/ByteBuf ? capacity ?
? ?
checkDstIndex (IIII)V ? ?
? hasArray ?
? ? array ()[B ? ?
? ? arrayOffset ?
? ? 8(I[BII)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; ? ?
? nioBufferCount ?
? ?
nioBuffers (II)[Ljava/nio/ByteBuffer; ? ?
? ? [Ljava/nio/ByteBuffer; ? I(ILjava/nio/ByteBuffer;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; ? ?
? setBytes ? ?
? ? bbLen bb dst 1Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; dstIndex length #java/lang/IndexOutOfBoundsException ? 1dstIndex: %d, length: %d (expected: range(0, %d)) ? java/lang/Object ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? java/lang/String ? format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; ? ?
? ?
? 2 internalNioBuffer ? 9
? clear ()Ljava/nio/Buffer; ? ?
? java/nio/Buffer ? position (I)Ljava/nio/Buffer; ? ?
? ? H ?
? ? ([BII)Ljava/nio/ByteBuffer; \ ?
? [B tmpBuf
checkIndex ?
? java/lang/NullPointerException ? ?
? 2
? java/lang/Math ? min (II)I ? ?
? ? put ,(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer; ? ?
? bytesToCopy setByte 5(II)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; java/nio/ReadOnlyBufferException
value _setByte (II)V setShort _setShort
setShortLE _setShortLE setMedium
_setMedium setMediumLE _setMediumLE setInt _setInt setIntLE _setIntLE setLong 5(IJ)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; J _setLong (IJ)V setLongLE
_setLongLE maxCapacity
newCapacity alloc <()Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator; ()Ljava/nio/ByteOrder; unwrap 3()Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; isDirect"
# K(ILjava/io/OutputStream;I)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; java/io/IOException&
?
?
? java/io/OutputStream+ write ([BII)V-.
,/ ([B)Ljava/nio/ByteBuffer; \1
2 ([B)V-4
,5 tmp out Ljava/io/OutputStream; -(ILjava/nio/channels/GatheringByteChannel;I)I &java/nio/channels/GatheringByteChannel; (Ljava/nio/ByteBuffer;)I-=<> (Ljava/nio/channels/GatheringByteChannel; %(ILjava/nio/channels/FileChannel;JI)I java/nio/channels/FileChannelB (Ljava/nio/ByteBuffer;J)I-D
CE Ljava/nio/channels/FileChannel; src srcIndex (ILjava/io/InputStream;I)I in Ljava/io/InputStream; .(ILjava/nio/channels/ScatteringByteChannel;I)I )Ljava/nio/channels/ScatteringByteChannel;
O duplicateQ 9
R copy Too many bytes to read - Need U (I)Ljava/lang/StringBuilder; #W
X allocateDirect (I)Ljava/nio/ByteBuffer;Z[
\ B
^ =com/groupbyinc/flux/common/netty/buffer/UnpooledDirectByteBuf`
b S(Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator;Ljava/nio/ByteBuffer;I)V d
ae ignored $Ljava/lang/IllegalArgumentException; nioBuffer (II)Ljava/nio/ByteBuffer;ij
k
? hasMemoryAddress
memoryAddress ()J 'java/lang/UnsupportedOperationExceptionq
r Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile
D t ? M*,? ? ,? ? !? Y? Y? "? &,? ,? &? 0? 3?*+? 7*,? ;? A? E? G**? G? J? NW? u M O P M M v ) * + - . 2 / @ 0 L 1w ? - 5 Q t + ? u O P v 4 R S t B
*? V*? Y? u
O P
Z [ v
8 9 W S t = *? G? ^? u O P Z [ v > _ ` t B
*? V*? c? u
O P
Z [ v
C D a ` t = *? G? e? u O P Z [ v I f ` t B
*? V*? i? u
O P
Z [ v
N O g ` t @ *? G? e? o? u O P Z [ v T p q t B
*? V*? t? u
O P
Z [ v
Y Z r q t h (*? v ?~x*`? v ?~x?*`? v ?~?? u ( O P ( Z [ v _ ` a ' _ w q t B
*? V*? z? u
O P
Z [ v
f g x q t h (*? v ?~*`? v ?~x?*`? v ?~x?? u ( O P ( Z [ v l
m n ' l { q t B
*? V*? ~? u
O P
Z [ v
s t | q t = *? G? ?? u O P Z [ v y ? q t B
*? V*? ?? u
O P
Z [ v
~ ? q t @ *? G? ?? ?? u O P Z [ v ? ? ? t B
*? V*? ?? u
O P
Z [ v
? ? ? ? t = *? G? ?? u O P Z [ v ? ? ? t B
*? V*? ?? u
O P
Z [ v
? ? ? ? t @ *? G? ?? ?? u O P Z [ v ? ? ? t
w*,? ?? ?,? ?? *,? ?,? ?`? ?W? P,? ?? ?,? ?:?66? $2:? 6 *? ?W `??ۧ
,*? ?W*? u H U
? [ N ? w O P w Z [ w ? ? w ? [ w ? [ v . ? ? ? ( ? / ? N ? U ? ] ? b ? k ? u ?w (? ?? ' ? ? t ? b*,?? ?? ,?d? +? ?Y?? ?Y? ?SY? ?SY,?? ?S? շ ֿ*? ?:? ?? ?`? ?W,? ?W*? u > b O P b Z [ b ? ? b ? [ b ? [ E ? v &