Class ByteChunk
java.lang.Object
cool.scx.io.ByteChunk
ByteChunk
为了性能考虑 所有方法均没有 边界检查, 使用时请注意 参数正确
- Version:
- 0.0.1
- Author:
- scx567888
-
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_BYTE_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 起始
-