
com.groupbyinc.flux.common.io.stream.BytesStreamOutput.class Maven / Gradle / Ivy
???? 3 ? 6com/groupbyinc/flux/common/io/stream/BytesStreamOutput 1com/groupbyinc/flux/common/io/stream/StreamOutput )com/groupbyinc/flux/common/io/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 0
1 )com/groupbyinc/flux/common/util/ByteArray 3 set (JB)B 5 6 4 7 b B
writeBytes ([BII)V "java/lang/IllegalArgumentException = java/lang/StringBuilder ?
@ Illegal offset B append -(Ljava/lang/String;)Ljava/lang/StringBuilder; D E
@ F (I)Ljava/lang/StringBuilder; D H
@ I /length K for byte[] of length M toString ()Ljava/lang/String; O P
@ Q (Ljava/lang/String;)V S
> T (J[BII)V 5 V 4 W [B offset length reset size ] ) 4 ^ @ resize Y(Lcom/groupbyinc/flux/common/util/ByteArray;J)Lcom/groupbyinc/flux/common/util/ByteArray; b c
d flush seek (J)V ??? position k (J)Ljava/lang/StringBuilder; D m
@ n > Integer.MAX_VALUE p J skip close ()I 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; 4com/groupbyinc/flux/common/bytes/PagedBytesReference w Z(Lcom/groupbyinc/flux/common/util/BigArrays;Lcom/groupbyinc/flux/common/util/ByteArray;I)V y
x z ramBytesUsed | ) 4 } grow c
? Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable
SourceFile !
? 4 *? ? ? ?
/ 0 ? A *? ? ? ?
?
9 : ? ^ *? *,? !*,?? %? '? ?
? <