Class ByteChunk
java.lang.Object
cool.scx.io.ByteChunk
-
Field Summary
Fields -
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 起始subChunk(int start, int end) 相对 索引 0 起始toString()toString(int start) 相对 索引 0 起始toString(int start, int end) 相对 索引 0 起始
-
Field Details
-
EMPTY_CHUNK
-
bytes
public final byte[] bytes -
start
public final int start -
end
public final int end -
length
public final int length
-
-
Constructor Details
-
ByteChunk
public ByteChunk(byte[] bytes) -
ByteChunk
public ByteChunk(byte[] bytes, int start, int end)
-
-
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
-
subChunk
相对 索引 0 起始
-