类 FastByteBuffer
java.lang.Object
com.axios.core.tool.io.FastByteBuffer
public class FastByteBuffer extends Object
[快速缓冲](Fast buffer)
- 从以下版本开始:
- 2021-11-28 14:30:02
- 版本:
- V1.0
- 作者:
- XiaoXunYao
-
构造器概要
构造器 构造器 说明 FastByteBuffer()
FastByteBuffer(int size)
-
方法概要
修饰符和类型 方法 说明 FastByteBuffer
append(byte element)
[向快速缓冲加入一个字节](Add a byte to the cache)FastByteBuffer
append(byte[] array)
[向快速缓冲加入数据](Adding data to the cache)FastByteBuffer
append(byte[] array, int off, int len)
FastByteBuffer
append(FastByteBuffer buff)
[将另一个快速缓冲加入到自身](Add another cache to itself)byte[]
array(int index)
byte
get(int index)
int
index()
boolean
isEmpty()
int
offset()
void
reset()
int
size()
byte[]
toArray()
byte[]
toArray(int start, int len)
-
构造器详细资料
-
FastByteBuffer
public FastByteBuffer() -
FastByteBuffer
public FastByteBuffer(int size)
-
-
方法详细资料
-
append
- 参数:
array
- 数据off
- 偏移量len
- 字节数- 返回:
- com.axios.core.tool.io.FastByteBuffer
- 从以下版本开始:
- 2021-11-28 14:31:19
-
append
[向快速缓冲加入数据](Adding data to the cache)- 参数:
array
- 数据- 返回:
- com.axios.core.tool.io.FastByteBuffer
- 从以下版本开始:
- 2021-11-28 14:31:48
-
append
[向快速缓冲加入一个字节](Add a byte to the cache)- 参数:
element
- 一个字节的数据- 返回:
- com.axios.core.tool.io.FastByteBuffer
- 从以下版本开始:
- 2021-11-28 14:32:35
-
append
[将另一个快速缓冲加入到自身](Add another cache to itself)- 参数:
buff
- 快速缓冲- 返回:
- com.axios.core.tool.io.FastByteBuffer
- 从以下版本开始:
- 2021-11-28 14:33:04
-
size
public int size() -
isEmpty
public boolean isEmpty() -
index
public int index() -
offset
public int offset() -
array
public byte[] array(int index) -
reset
public void reset() -
toArray
public byte[] toArray() -
toArray
public byte[] toArray(int start, int len) -
get
public byte get(int index)
-