com.groupbyinc.flux.common.netty.buffer.CompositeByteBuf.class Maven / Gradle / Ivy
???? 2, 8com/groupbyinc/flux/common/netty/buffer/CompositeByteBuf ?Lcom/groupbyinc/flux/common/netty/buffer/AbstractReferenceCountedByteBuf;Ljava/lang/Iterable; Gcom/groupbyinc/flux/common/netty/buffer/AbstractReferenceCountedByteBuf java/lang/Iterable CompositeByteBuf.java :com/groupbyinc/flux/common/netty/buffer/CompositeByteBuf$1 Qcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf$CompositeByteBufIterator CompositeByteBufIterator Bcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf$Component Component EMPTY_NIO_BUFFER Ljava/nio/ByteBuffer; EMPTY_ITERATOR Ljava/util/Iterator; GLjava/util/Iterator; alloc :Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator; direct Z
components Ljava/util/List; VLjava/util/List; maxNumComponents I freed $assertionsDisabled ?(Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator;ZI)V??? (I)V ! $
% java/lang/NullPointerException ' (Ljava/lang/String;)V ! *
( + 8com/groupbyinc/flux/common/netty/buffer/ByteBufAllocator - / 1 3 newList (I)Ljava/util/List; 5 6
7 9 this :Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; q(Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator;ZI[Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)V s(Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator;ZI[Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;II)V ! >
? buffers 2[Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; B "java/lang/IllegalArgumentException D java/lang/StringBuilder F ()V ! H
G I maxNumComponents: K append -(Ljava/lang/String;)Ljava/lang/StringBuilder; M N
G O (I)Ljava/lang/StringBuilder; M Q
G R (expected: >= 2) T toString ()Ljava/lang/String; V W
G X
E + addComponents0 9(ZI[Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;II)I [ \
] consolidateIfNeeded _ H
` capacity ()I b c
d setIndex >(II)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; f g
h offset len S(Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator;ZILjava/lang/Iterable;)V (ZILjava/lang/Iterable;)I [ m
n GLjava/lang/Iterable; Ljava/lang/Iterable; java/util/ArrayList r java/lang/Math t min (II)I v w
u x
s % =(Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator;)V java/util/Collections | emptyList ()Ljava/util/List; ~
} ? addComponent m(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; n(ZLcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; ? ?
? buffer 1Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;
addComponents n([Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; o(Z[Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; ? ?
? P(Ljava/lang/Iterable;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; Q(ZLjava/lang/Iterable;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; ? ?
? n(ILcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; o(ZILcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; ? ?
? cIndex ? 9com/groupbyinc/flux/common/netty/util/internal/ObjectUtil ? checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; ? ?
? ? java/util/List ? size ? c ? ?
addComponent0 6(ZILcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)I ? ?
? increaseWriterIndex ? java/lang/AssertionError ?
? I checkComponentIndex ? $
? /com/groupbyinc/flux/common/netty/buffer/ByteBuf ?
readableBytes ? c
? ? java/nio/ByteOrder ?
BIG_ENDIAN Ljava/nio/ByteOrder; ? ? ? ? order G(Ljava/nio/ByteOrder;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; ? ?
? ? slice 3()Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; ? ?
? ? 4(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)V ! ?
? add (Ljava/lang/Object;)Z ? ? ? ? endOffset ? ? get (I)Ljava/lang/Object; ? ? ? ? j ? (ILjava/lang/Object;)V ? ? ? ? updateComponentOffsets ? $
? writerIndex ? c
? =(I)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; ? ?
? release ()Z ? ?
? ? java/lang/Throwable ? prev DLcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf$Component; c wasAdded o(I[Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; A b i Q(ILjava/lang/Iterable;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; java/util/Collection ?
s I iterator ()Ljava/util/Iterator; ? ? ? java/util/Iterator ? hasNext ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? ? ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ? list CLjava/util/List;
increaseIndex col ILjava/util/Collection; Ljava/util/Collection; allocBuffer 4(I)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;
buf
?
writeBytes d(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;
? freeIfNecessary H
length clear H ? consolidated
numComponents ensureAccessible H
#java/lang/IndexOutOfBoundsException" 3cIndex: %d (expected: >= 0 && <= numComponents(%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;01
/2
# + (II)V icIndex: %d, numComponents: %d (expected: cIndex >= 0 && cIndex + numComponents <= totalNumComponents(%d))6 cur removeComponent remove: ? ?; comp removeComponents ?5
? subList (II)Ljava/util/List;AB ?C ? ? toRemove needsUpdate isEmptyH ? ?I K y(Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf;Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf$1;)V !M
N decompose
checkIndexQ5
R toComponentIndex (I)ITU
V duplicateX ?
?Y readerIndex[
?\[ c
?^ ?
?` set '(ILjava/lang/Object;)Ljava/lang/Object;bc ?d componentId firstC first bytesToSlice isDirectj ?
?k hasArraym ?
?n array ()[B :com/groupbyinc/flux/common/netty/util/internal/EmptyArraysr EMPTY_BYTES [Btu svpq
?x 'java/lang/UnsupportedOperationExceptionz
{ I arrayOffset} c
?~ hasMemoryAddress 0com/groupbyinc/flux/common/netty/buffer/Unpooled? EMPTY_BUFFER? ? ??? ?
??
memoryAddress ()J??
?? checkNewCapacity? $
? 5(II)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; f?
?? listIterator (I)Ljava/util/ListIterator;?? ?? java/util/ListIterator? hasPrevious? ??? previous? ???: H?? ??
?? (Ljava/lang/Object;)Vb???
^ padding
paddingLength nComponents newC ^Ljava/util/ListIterator; Ljava/util/ListIterator; bytesToTrim newCapacity oldCapacity <()Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator; ()Ljava/nio/ByteOrder;Q $
? java/lang/Error? should not reach here?
? + mid low high toByteIndex getByte (I)B _getByte??
? index
findComponent G(I)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf$Component;??
???
?? _getShort (I)S getShort??
?? ??
? _getShortLE
getShortLE??
?? _getUnsignedMedium getUnsignedMedium?U
????
? ?? _getUnsignedMediumLE getUnsignedMediumLE?U
????
? _getInt getInt?U
?? _getIntLE getIntLE?U
?? _getLong (I)J getLong??
???U
? ????
_getLongLE getLongLE??
???U
? getBytes A(I[BII)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf;
checkDstIndex (IIII)V??
?
? d 8(I[BII)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;??
?? s
adjustment localLength dst dstIndex R(ILjava/nio/ByteBuffer;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; java/nio/ByteBuffer limit c
remaining c
position c
(I)Ljava/nio/Buffer;
I(ILjava/nio/ByteBuffer;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;?
? p(ILcom/groupbyinc/flux/common/netty/buffer/ByteBuf;II)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; g(ILcom/groupbyinc/flux/common/netty/buffer/ByteBuf;II)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;?
? -(ILjava/nio/channels/GatheringByteChannel;I)I java/io/IOException nioBufferCount c
internalNioBuffer (II)Ljava/nio/ByteBuffer;"#
$ &java/nio/channels/GatheringByteChannel& write (Ljava/nio/ByteBuffer;)I()'*
nioBuffers (II)[Ljava/nio/ByteBuffer;,-
. ([Ljava/nio/ByteBuffer;)J(0'1 ??? writtenBytes J out (Ljava/nio/channels/GatheringByteChannel; count %(ILjava/nio/channels/FileChannel;JI)I java/nio/channels/FileChannel; (Ljava/nio/ByteBuffer;J)I(=
<> [Ljava/nio/ByteBuffer;@ Ljava/nio/channels/FileChannel; T(ILjava/io/OutputStream;I)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; K(ILjava/io/OutputStream;I)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;?D
?E Ljava/io/OutputStream; setByteH?
?I value _setByteH g
M setShortO?
P _setShort
?PL5
T _setShortLE
setShortLEW?
?X setMediumZ?
[
_setMedium
?[R5
_ _setMediumLE setMediumLEb?
?cV5
e setIntg?
h _setInt
?h _setIntLE setIntLEm?
?n setLong >(IJ)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; 5(IJ)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;pr
s _setLong (IJ)V
?sj5
x
_setLongLE setLongLE{r
?|l5
~ setBytes
checkSrcIndex??
???
?? src srcIndex?
???
?? (ILjava/io/InputStream;I)I java/io/InputStream? read ([B)I??
????
?? localReadBytes in Ljava/io/InputStream; readBytes .(ILjava/nio/channels/ScatteringByteChannel;I)I ? 'java/nio/channels/ScatteringByteChannel??)????
?? )Ljava/nio/channels/ScatteringByteChannel;?=
<??:
?? copy ?
?? copyTo 7(IIILcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)V??
? component internalComponent?
? componentAtOffset internalComponentAtOffset?
?
? componentsCount
?$ nioBuffer?#
?? allocate (I)Ljava/nio/ByteBuffer;??
? +(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer; ??
? put ,(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;??
? flip ()Ljava/nio/Buffer;??
? merged
?. addAll ,(Ljava/util/Collection;[Ljava/lang/Object;)Z??
}? ? 'Ljava/util/List; consolidate <()Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; c
? last endCIndex discardReadComponents
adjustMarkers? $
? firstComponentId discardReadBytes ?
? directBuffer?
.?
heapBuffer?
.?
X c
/? substring (II)Ljava/lang/String;??
/?
, components=? (C)Ljava/lang/StringBuilder; M?
G? result Ljava/lang/String;
\
`
? ?
? markReaderIndex? ?
? resetReaderIndex? ?
? markWriterIndex ?
resetWriterIndex ?
ensureWritable
minWritableBytes e(ILcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;?
o(ILcom/groupbyinc/flux/common/netty/buffer/ByteBuf;I)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; f(ILcom/groupbyinc/flux/common/netty/buffer/ByteBuf;I)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;?
?(I[B)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; 6(I[B)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;?
setBoolean >(IZ)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; 5(IZ)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;
setChar?
setFloat >(IF)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; 5(IF)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;
F setDouble >(ID)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; 5(ID)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;#%
& D?
)?
+?
- setZero/?
0?
2 n(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;I)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; e(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;I)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;?5
6 o(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;II)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; f(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;II)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;?9
: >([B)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; 5([B)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;?=
> @([BII)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; 7([BII)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;?A
B Q(Ljava/nio/ByteBuffer;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; H(Ljava/nio/ByteBuffer;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;?E
F S(Ljava/io/OutputStream;I)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; J(Ljava/io/OutputStream;I)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;?I
J skipBytesL
M writeBoolean =(Z)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; 4(Z)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;OQ
R writeByteT
U
writeShortW
X writeMediumZ
[ writeInt]
^ writeLong =(J)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; 4(J)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;`b
c writeChare
f
writeFloat =(F)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; 4(F)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;hj
k writeDouble =(D)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; 4(D)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;mo
p
5
s9
u=
wA
yE
{ writeZero}
~ retain?
? increment? ?
? touch N(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; hint Ljava/lang/Object; ()[Ljava/nio/ByteBuffer;
? discardSomeReadBytes??
?
deallocate ? unwrap E(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;??
???
?? ?
???
?} ?
?D
?8
?4
? ?
?<
?@
?mn
?hi
?e ?
?`a
?] ?
?Z ?
?W ?
?T ?
?OP
?L ?
??H
??D
??8
??4
?? ?
??<
??@
?/ g
??
?? ?
??
?#$
?pq
?
?g g
?Z g
? g
?O g
?
??
?? ?
??
? ?
???
???
??
? ?
???
???
??
?[ ?
??
???
??
?C
?
??
?
b ?
L(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/netty/util/ReferenceCounted; :()Lcom/groupbyinc/flux/common/netty/util/ReferenceCounted; ;(I)Lcom/groupbyinc/flux/common/netty/util/ReferenceCounted;
access$100 L(Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf;)Ljava/util/List; x0 java/lang/Class desiredAssertionStatus ?
()Ljava/nio/ByteBuffer;?
? Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable ?(Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator;ZILjava/lang/Iterable;)V Y(I)Ljava/util/List; ?(Ljava/lang/Iterable;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; ?(ZLjava/lang/Iterable;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; ?(ILjava/lang/Iterable;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; L(ZILjava/lang/Iterable;)I I()Ljava/util/Iterator; G(II)Ljava/util/List;
Exceptions
SourceFile InnerClasses ! ? ! " ? ,*#? &+?
? (Y)? ,?*+? 0*? 2*? 4*? 8? :? * , ; <