com.groupbyinc.flux.common.io.stream.BytesStreamOutput.class Maven / Gradle / Ivy
???? 4 ? 6com/groupbyinc/flux/common/io/stream/BytesStreamOutput 0com/groupbyinc/flux/common/io/stream/BytesStream BytesStreamOutput.java bigArrays +Lcom/groupbyinc/flux/common/util/BigArrays; bytes +Lcom/groupbyinc/flux/common/util/ByteArray; count I ()V (I)V
this 8Lcom/groupbyinc/flux/common/io/stream/BytesStreamOutput; )com/groupbyinc/flux/common/util/BigArrays NON_RECYCLING_INSTANCE /(ILcom/groupbyinc/flux/common/util/BigArrays;)V
expectedSize
newByteArray .(J)Lcom/groupbyinc/flux/common/util/ByteArray; !
" $ position ()J java/io/IOException (
* writeByte (B)V ensureCapacity (J)V . /
0 )com/groupbyinc/flux/common/util/ByteArray 2 set (JB)B 4 5 3 6 b B
writeBytes ([BII)V "java/lang/IllegalArgumentException < java/lang/StringBuilder >
? Illegal offset A append -(Ljava/lang/String;)Ljava/lang/StringBuilder; C D
? E (I)Ljava/lang/StringBuilder; C G
? H /length J for byte[] of length L toString ()Ljava/lang/String; N O
? P (Ljava/lang/String;)V R
= S (J[BII)V 4 U 3 V [B offset length reset size \ ' 3 ] @ resize Y(Lcom/groupbyinc/flux/common/util/ByteArray;J)Lcom/groupbyinc/flux/common/util/ByteArray; a b
c flush seek J skip f /
i close ()I 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; 4com/groupbyinc/flux/common/bytes/PagedBytesReference n Z(Lcom/groupbyinc/flux/common/util/BigArrays;Lcom/groupbyinc/flux/common/util/ByteArray;I)V p
o q ramBytesUsed s ' 3 t ??? java/lang/Object x getClass ()Ljava/lang/Class; z {
y | java/lang/Class ~
getSimpleName ? O
? " cannot hold more than 2GB of data ? grow ? b
? Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable
SourceFile !
? 4 *? ? ? ?
. / ? A *? ? ? ? ?
8 9 ? ^ *? *,? *,?? #? %? ? ? ; <