程序包 com.jackmeng
类 CircularBuffer
java.lang.Object
com.jackmeng.CircularBuffer
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static intcalc_offset(int len_0, int sz, int buff_len) voiddrop(int elementsCount) intfree(int n) intfreeSize()private intgetRem(byte[] data, int rem, int off) voidinit()voidnext(int n) intoffset()voidopush(byte[] data, int i, int len) booleanoverflows(int n) intpeek(byte[] data, int i, int len) voidpeek(Callback<Void, ByteBuffer> e) intpop(byte[] bytes, int i, int len) intpush(byte[] data, int i, int len) intintusedSize()
-
字段详细资料
-
buffer
private final byte[] buffer -
start
private int start -
sz
private int sz
-
-
构造器详细资料
-
CircularBuffer
public CircularBuffer(int init_Size) -
CircularBuffer
public CircularBuffer()
-
-
方法详细资料
-
usedSize
public int usedSize() -
totalSize
public int totalSize() -
freeSize
public int freeSize() -
drop
public void drop(int elementsCount) -
push
public int push(byte[] data, int i, int len) -
getRem
private int getRem(byte[] data, int rem, int off) -
opush
public void opush(byte[] data, int i, int len) -
init
public void init() -
calc_offset
private static int calc_offset(int len_0, int sz, int buff_len) -
offset
public int offset() -
peek
-
peek
public int peek(byte[] data, int i, int len) -
pop
public int pop(byte[] bytes, int i, int len) -
overflows
public boolean overflows(int n) -
next
public void next(int n) -
free
public int free(int n)
-