
com.groupbyinc.flux.common.bytes.BytesArray.class Maven / Gradle / Ivy
???? 3 ? +com/groupbyinc/flux/common/bytes/BytesArray java/lang/Object /com/groupbyinc/flux/common/bytes/BytesReference BytesArray.java 6com/groupbyinc/flux/common/bytes/BytesReference$Helper Helper EMPTY -Lcom/groupbyinc/flux/common/bytes/BytesArray; bytes [B offset I length (Ljava/lang/String;)V ()V
6com/groupbyinc/flux/common/apache/lucene/util/BytesRef (Ljava/lang/CharSequence;)V
" " this Ljava/lang/String; bytesRef 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; ;(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)V <(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;Z)V *
+
deepCopyOf r(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;)Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; - .
/ copy deepCopy Z ([B)V ([BII)V get (I)B index ()I slice 5(II)Lcom/groupbyinc/flux/common/bytes/BytesReference; "java/lang/IllegalArgumentException < java/lang/StringBuilder >
? "can't slice a buffer with length [ A append -(Ljava/lang/String;)Ljava/lang/StringBuilder; C D
? E (I)Ljava/lang/StringBuilder; C G
? H ], with slice parameters from [ J ], length [ L ] N toString ()Ljava/lang/String; P Q
? R
= T 5
V from streamInput 4()Lcom/groupbyinc/flux/common/io/stream/StreamInput; 0com/groupbyinc/flux/common/io/stream/StreamInput [ wrap 8([BII)Lcom/groupbyinc/flux/common/io/stream/StreamInput; ] ^
\ _ writeTo (Ljava/io/OutputStream;)V java/io/IOException c java/io/OutputStream e write g 5
f h os Ljava/io/OutputStream; +(Ljava/nio/channels/GatheringByteChannel;)V 9
m &com/groupbyinc/flux/common/io/Channels o writeToChannel .([BIILjava/nio/channels/WritableByteChannel;)V q r
p s channel (Ljava/nio/channels/GatheringByteChannel; toBytes ()[B java/util/Arrays y copyOfRange ([BII)[B { |
z } toBytesArray /()Lcom/groupbyinc/flux/common/bytes/BytesArray; copyBytesArray 4
? toChannelBuffer ?()Lcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer;