|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.codec.video.ByteBuffer
public class ByteBuffer
Represents a buffer of native memory with a specific size/capacity which either contains a specific number of bytes of valid data or is free for consumption.
| Field Summary | |
|---|---|
int |
capacity
The maximum number of bytes which can be written into the native memory represented by this instance. |
long |
ptr
The pointer to the native memory represented by this instance. |
| Constructor Summary | |
|---|---|
ByteBuffer(int capacity)
Initializes a new ByteBuffer instance with a specific capacity. |
|
| Method Summary | |
|---|---|
int |
getLength()
Gets the number of bytes of valid data that the native memory represented by this instance contains. |
boolean |
isFree()
Determines whether this instance is free to be written bytes into. |
void |
setFree(boolean free)
Sets the indicator which determines whether this instance is free to be written bytes into. |
void |
setLength(int length)
Sets the number of bytes of valid data that the native memory represented by this instance contains. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int capacity
public final long ptr
| Constructor Detail |
|---|
public ByteBuffer(int capacity)
capacity - the maximum number of bytes which can be written into the
native memory represented by the new instance| Method Detail |
|---|
public int getLength()
public boolean isFree()
public void setFree(boolean free)
free - true if this instance is to be made available for
writing bytes into; otherwise, falsepublic void setLength(int length)
length - the number of bytes of valid data that the native memory
represented by this instance contains
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||