Class ByteChunk
java.lang.Object
cool.scx.bytes.ByteChunk
ByteChunk
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal byte[]final intfinal intfinal int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytegetByte(int index) 相对 索引 0 起始byte[]getBytes()相对 索引 0 起始byte[]getBytes(int start) 相对 索引 0 起始byte[]getBytes(int start, int end) 相对 索引 0 起始splice(int start, int end) 相对 索引 0 起始toString()toString(int start) 相对 索引 0 起始toString(int start, int end) 相对 索引 0 起始
-
Field Details
-
bytes
public final byte[] bytes -
startPosition
public final int startPosition -
endPosition
public final int endPosition -
length
public final int length
-
-
Constructor Details
-
ByteChunk
public ByteChunk(byte[] bytes) -
ByteChunk
public ByteChunk(byte[] bytes, int startPosition, int endPosition)
-
-
Method Details
-
getByte
public byte getByte(int index) 相对 索引 0 起始 -
getBytes
public byte[] getBytes(int start, int end) 相对 索引 0 起始 -
getBytes
public byte[] getBytes(int start) 相对 索引 0 起始 -
getBytes
public byte[] getBytes()相对 索引 0 起始 -
toString
相对 索引 0 起始 -
toString
相对 索引 0 起始 -
toString
-
splice
相对 索引 0 起始
-