程序包 com.jackmeng
类 CircularBuffer
java.lang.Object
com.jackmeng.CircularBuffer
-
字段概要
-
构造器概要
-
方法概要
修饰符和类型方法说明private static int
calc_offset
(int len_0, int sz, int buff_len) void
drop
(int elementsCount) int
free
(int n) int
freeSize()
private int
getRem
(byte[] data, int rem, int off) void
init()
void
next
(int n) int
offset()
void
opush
(byte[] data, int i, int len) boolean
overflows
(int n) int
peek
(byte[] data, int i, int len) void
peek
(Callback<Void, ByteBuffer> e) int
pop
(byte[] bytes, int i, int len) int
push
(byte[] data, int i, int len) int
int
usedSize()
-
字段详细资料
-
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)
-