
com.groupbyinc.flux.common.jboss.netty.buffer.CompositeChannelBuffer.class Maven / Gradle / Ivy
???? 1? Dcom/groupbyinc/flux/common/jboss/netty/buffer/CompositeChannelBuffer Ccom/groupbyinc/flux/common/jboss/netty/buffer/AbstractChannelBuffer CompositeChannelBuffer.java order Ljava/nio/ByteOrder;
components >[Lcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer; indices [I lastAccessedComponentId I gathering Z $assertionsDisabled ((Ljava/nio/ByteOrder;Ljava/util/List;Z)V ()V
setComponents (Ljava/util/List;)V
this FLcom/groupbyinc/flux/common/jboss/netty/buffer/CompositeChannelBuffer;
endianness buffers OLjava/util/List; Ljava/util/List; useGathering ()Z Bcom/groupbyinc/flux/common/jboss/netty/util/internal/DetectionUtil & javaVersion ()I ( )
' * decompose (II)Ljava/util/List; java/util/Collections . emptyList ()Ljava/util/List; 0 1
/ 2 capacity 4 )
5 #java/lang/IndexOutOfBoundsException 7 java/lang/StringBuilder 9
: #Too many bytes to decompose - Need < append -(Ljava/lang/String;)Ljava/lang/StringBuilder; > ?
: @ (I)Ljava/lang/StringBuilder; > B
: C , capacity is E toString ()Ljava/lang/String; G H
: I (Ljava/lang/String;)V K
8 L componentId (I)I N O
P java/util/ArrayList R T (I)V V
S W ;com/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer Y duplicate ?()Lcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer; [ \ Z ]
_ readerIndex a V Z b
readableBytes d ) Z e a ) Z g writerIndex i V Z j java/util/List l add (Ljava/lang/Object;)Z n o m p size r ) m s get (I)Ljava/lang/Object; u v m w slice y \ Z z set '(ILjava/lang/Object;)Ljava/lang/Object; | } m ~ i index length first =Lcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer; buf bytesToSlice ? isEmpty ? % m ? java/lang/AssertionError ?
?
? ()Ljava/nio/ByteOrder; ? Z ?
? "java/lang/IllegalArgumentException ? *All buffers must have the same endianness. ?
? L i ) Z ? Z 5 setIndex (II)V ? ?
? c
newComponents I(Lcom/groupbyinc/flux/common/jboss/netty/buffer/CompositeChannelBuffer;)V clone ()Ljava/lang/Object; ? ?
? ?
? ?
g
? buffer factory F()Lcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBufferFactory; Fcom/groupbyinc/flux/common/jboss/netty/buffer/HeapChannelBufferFactory ? getInstance Z(Ljava/nio/ByteOrder;)Lcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBufferFactory; ? ?
? ? isDirect hasArray array ()[B 'java/lang/UnsupportedOperationException ?
? arrayOffset
numComponents getByte (I)B ? ? Z ? getShort (I)S ? ? Z ? java/nio/ByteOrder ?
BIG_ENDIAN ? ? ?
? getUnsignedMedium ? O Z ?
? ?? getInt ? O Z ? getLong (I)J ? ? Z ?
? ???? getBytes (I[BII)V Too many bytes to read - Needs ?
, maximum is ? or ? Index must be >= 0 ? java/lang/Math ? min (II)I ? ?
? ? ? ? Z ? s
adjustment localLength dst [B dstIndex (ILjava/nio/ByteBuffer;)V java/nio/ByteBuffer ? limit ? )
? ? remaining ? )
? ? "Too many bytes to be read - Needs ? position ? )
? (I)Ljava/nio/Buffer; ?
? ? ? Z Ljava/nio/ByteBuffer; C(ILcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer;II)V ? Z -(ILjava/nio/channels/GatheringByteChannel;I)I java/io/IOException $ %
toByteBuffers (II)[Ljava/nio/ByteBuffer;
&java/nio/channels/GatheringByteChannel write ([Ljava/nio/ByteBuffer;)J toByteBuffer (II)Ljava/nio/ByteBuffer;
(Ljava/nio/ByteBuffer;)I out (Ljava/nio/channels/GatheringByteChannel; (ILjava/io/OutputStream;I)V "Too many bytes to be read - needs $
, maximum of & ?# Z( Ljava/io/OutputStream; setByte+ ? Z, value setShort/ ? Z0
, setMedium3 ? Z4
0 setInt7 ? Z8 setLong (IJ)V:; Z<
8 J setBytes Too many bytes to read - needs A@ ? ZC src srcIndex %Too many bytes to be written - Needs G@ ? ZI@ ZK (ILjava/io/InputStream;I)I Too many bytes to write - Needs N@M ZP localReadBytes in Ljava/io/InputStream; readBytes .(ILjava/nio/channels/ScatteringByteChannel;I)I@V ZW )Ljava/nio/channels/ScatteringByteChannel; ?
Z Z ? copy A(II)Lcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer; Too many bytes to copy - Needs _ ? ?
a Bcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBufferFactoryc getBuffer T(Ljava/nio/ByteOrder;I)Lcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer;efdg copyTo C(IIILcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer;)Vij
k @(I)Lcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer; Invalid index: n - Bytes needed: p