io.netty.buffer.CompositeByteBuf.class Maven / Gradle / Ivy
???? 2, io/netty/buffer/CompositeByteBuf `Lio/netty/buffer/AbstractReferenceCountedByteBuf;Ljava/lang/Iterable; /io/netty/buffer/AbstractReferenceCountedByteBuf java/lang/Iterable CompositeByteBuf.java "io/netty/buffer/CompositeByteBuf$1 9io/netty/buffer/CompositeByteBuf$CompositeByteBufIterator CompositeByteBufIterator *io/netty/buffer/CompositeByteBuf$Component Component EMPTY_NIO_BUFFER Ljava/nio/ByteBuffer; EMPTY_ITERATOR Ljava/util/Iterator; /Ljava/util/Iterator; alloc "Lio/netty/buffer/ByteBufAllocator; direct Z
components Ljava/util/List; >Ljava/util/List; maxNumComponents I freed $assertionsDisabled '(Lio/netty/buffer/ByteBufAllocator;ZI)V??? (I)V ! $
% java/lang/NullPointerException ' (Ljava/lang/String;)V ! *
( + io/netty/buffer/ByteBufAllocator - / 1 3 newList (I)Ljava/util/List; 5 6
7 9 this "Lio/netty/buffer/CompositeByteBuf; A(Lio/netty/buffer/ByteBufAllocator;ZI[Lio/netty/buffer/ByteBuf;)V C(Lio/netty/buffer/ByteBufAllocator;ZI[Lio/netty/buffer/ByteBuf;II)V ! >
? buffers [Lio/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 !(ZI[Lio/netty/buffer/ByteBuf;II)I [ \
] consolidateIfNeeded _ H
` capacity ()I b c
d setIndex &(II)Lio/netty/buffer/CompositeByteBuf; f g
h offset len ;(Lio/netty/buffer/ByteBufAllocator;ZILjava/lang/Iterable;)V (ZILjava/lang/Iterable;)I [ m
n /Ljava/lang/Iterable; Ljava/lang/Iterable; java/util/ArrayList r java/lang/Math t min (II)I v w
u x
s % %(Lio/netty/buffer/ByteBufAllocator;)V java/util/Collections | emptyList ()Ljava/util/List; ~
} ? addComponent =(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/CompositeByteBuf; >(ZLio/netty/buffer/ByteBuf;)Lio/netty/buffer/CompositeByteBuf; ? ?
? buffer Lio/netty/buffer/ByteBuf;
addComponents >([Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/CompositeByteBuf; ?(Z[Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/CompositeByteBuf; ? ?
? 8(Ljava/lang/Iterable;)Lio/netty/buffer/CompositeByteBuf; 9(ZLjava/lang/Iterable;)Lio/netty/buffer/CompositeByteBuf; ? ?
? >(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/CompositeByteBuf; ?(ZILio/netty/buffer/ByteBuf;)Lio/netty/buffer/CompositeByteBuf; ? ?
? cIndex ? !io/netty/util/internal/ObjectUtil ? checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; ? ?
? ? java/util/List ? size ? c ? ?
addComponent0 (ZILio/netty/buffer/ByteBuf;)I ? ?
? increaseWriterIndex ? java/lang/AssertionError ?
? I checkComponentIndex ? $
? io/netty/buffer/ByteBuf ?
readableBytes ? c
? ? java/nio/ByteOrder ?
BIG_ENDIAN Ljava/nio/ByteOrder; ? ? ? ? order /(Ljava/nio/ByteOrder;)Lio/netty/buffer/ByteBuf; ? ?
? ? slice ()Lio/netty/buffer/ByteBuf; ? ?
? ? (Lio/netty/buffer/ByteBuf;)V ! ?
? add (Ljava/lang/Object;)Z ? ? ? ? endOffset ? ? get (I)Ljava/lang/Object; ? ? ? ? j ? (ILjava/lang/Object;)V ? ? ? ? updateComponentOffsets ? $
? writerIndex ? c
? %(I)Lio/netty/buffer/CompositeByteBuf; ? ?
? release ()Z ? ?
? ? java/lang/Throwable ? prev ,Lio/netty/buffer/CompositeByteBuf$Component; c wasAdded ?(I[Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/CompositeByteBuf; A b i 9(ILjava/lang/Iterable;)Lio/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 +Ljava/util/List;
increaseIndex col 1Ljava/util/Collection; Ljava/util/Collection; allocBuffer (I)Lio/netty/buffer/ByteBuf;
buf
?
writeBytes 4(Lio/netty/buffer/ByteBuf;)Lio/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 I(Lio/netty/buffer/CompositeByteBuf;Lio/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 "io/netty/util/internal/EmptyArraysr EMPTY_BYTES [Btu svpq
?x 'java/lang/UnsupportedOperationExceptionz
{ I arrayOffset} c
?~ hasMemoryAddress io/netty/buffer/Unpooled? EMPTY_BUFFER? ? ??? ?
??
memoryAddress ()J??
?? checkNewCapacity? $
? (II)Lio/netty/buffer/ByteBuf; f?
?? listIterator (I)Ljava/util/ListIterator;?? ?? java/util/ListIterator? hasPrevious? ??? previous? ???: H?? ??
?? (Ljava/lang/Object;)Vb???
^ padding
paddingLength nComponents newC FLjava/util/ListIterator; Ljava/util/ListIterator; bytesToTrim newCapacity oldCapacity $()Lio/netty/buffer/ByteBufAllocator; ()Ljava/nio/ByteOrder;Q $
? java/lang/Error? should not reach here?
? + mid low high toByteIndex getByte (I)B _getByte??
? index
findComponent /(I)Lio/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 )(I[BII)Lio/netty/buffer/CompositeByteBuf;
checkDstIndex (IIII)V??
?
? d (I[BII)Lio/netty/buffer/ByteBuf;??
?? s
adjustment localLength dst dstIndex :(ILjava/nio/ByteBuffer;)Lio/netty/buffer/CompositeByteBuf; java/nio/ByteBuffer limit c
remaining c
position c
(I)Ljava/nio/Buffer;
1(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;?
? @(ILio/netty/buffer/ByteBuf;II)Lio/netty/buffer/CompositeByteBuf; 7(ILio/netty/buffer/ByteBuf;II)Lio/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; <(ILjava/io/OutputStream;I)Lio/netty/buffer/CompositeByteBuf; 3(ILjava/io/OutputStream;I)Lio/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)Lio/netty/buffer/CompositeByteBuf; (IJ)Lio/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 (IIILio/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 $()Lio/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 5(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;?
?(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/CompositeByteBuf; 6(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;?
'(I[B)Lio/netty/buffer/CompositeByteBuf; (I[B)Lio/netty/buffer/ByteBuf;?
setBoolean &(IZ)Lio/netty/buffer/CompositeByteBuf; (IZ)Lio/netty/buffer/ByteBuf;
setChar?
setFloat &(IF)Lio/netty/buffer/CompositeByteBuf; (IF)Lio/netty/buffer/ByteBuf;
F setDouble &(ID)Lio/netty/buffer/CompositeByteBuf; (ID)Lio/netty/buffer/ByteBuf;#%
& D?
)?
+?
- setZero/?
0?
2 >(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/CompositeByteBuf; 5(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;?5
6 ?(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/CompositeByteBuf; 6(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;?9
: &([B)Lio/netty/buffer/CompositeByteBuf; ([B)Lio/netty/buffer/ByteBuf;?=
> (([BII)Lio/netty/buffer/CompositeByteBuf; ([BII)Lio/netty/buffer/ByteBuf;?A
B 9(Ljava/nio/ByteBuffer;)Lio/netty/buffer/CompositeByteBuf; 0(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;?E
F ;(Ljava/io/OutputStream;I)Lio/netty/buffer/CompositeByteBuf; 2(Ljava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;?I
J skipBytesL
M writeBoolean %(Z)Lio/netty/buffer/CompositeByteBuf; (Z)Lio/netty/buffer/ByteBuf;OQ
R writeByteT
U
writeShortW
X writeMediumZ
[ writeInt]
^ writeLong %(J)Lio/netty/buffer/CompositeByteBuf; (J)Lio/netty/buffer/ByteBuf;`b
c writeChare
f
writeFloat %(F)Lio/netty/buffer/CompositeByteBuf; (F)Lio/netty/buffer/ByteBuf;hj
k writeDouble %(D)Lio/netty/buffer/CompositeByteBuf; (D)Lio/netty/buffer/ByteBuf;mo
p
5
s9
u=
wA
yE
{ writeZero}
~ retain?
? increment? ?
? touch 6(Ljava/lang/Object;)Lio/netty/buffer/CompositeByteBuf; hint Ljava/lang/Object; ()[Ljava/nio/ByteBuffer;
? discardSomeReadBytes??
?
deallocate ? unwrap -(Ljava/lang/Object;)Lio/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 ?
4(Ljava/lang/Object;)Lio/netty/util/ReferenceCounted; "()Lio/netty/util/ReferenceCounted; #(I)Lio/netty/util/ReferenceCounted;
access$100 4(Lio/netty/buffer/CompositeByteBuf;)Ljava/util/List; x0 java/lang/Class desiredAssertionStatus ?
()Ljava/nio/ByteBuffer;?
? Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable V(Lio/netty/buffer/ByteBufAllocator;ZILjava/lang/Iterable;)V A(I)Ljava/util/List; S(Ljava/lang/Iterable;)Lio/netty/buffer/CompositeByteBuf; T(ZLjava/lang/Iterable;)Lio/netty/buffer/CompositeByteBuf; T(ILjava/lang/Iterable;)Lio/netty/buffer/CompositeByteBuf; 4(ZILjava/lang/Iterable;)I 1()Ljava/util/Iterator; /(II)Ljava/util/List;
Exceptions
SourceFile InnerClasses ! ? ! " ? ,*#? &+?
? (Y)? ,?*+? 0*? 2*? 4*? 8? :? * , ; <