public class CircularByteArray
extends java.lang.Object
Constructor and Description |
---|
CircularByteArray(int length)
Initializes a new CircularBufferArray instance with a specific
length.
|
Modifier and Type | Method and Description |
---|---|
void |
push(byte element)
Adds a specific element at the end of this CircularByteArray.
|
byte[] |
toArray()
Copies the elements of this CircularByteArray into a new
byte array.
|
public CircularByteArray(int length)
length
- the length i.e. the number of elements of the new instancepublic void push(byte element)
element
- the element to add at the end of this
CircularByteArraypublic byte[] toArray()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.