public interface Buffer
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent()
Get the content of the data buffer.
|
long |
getNativePointer()
Gets the native pointer used by this class to make native method calls.
|
int |
getSize()
Get the size of the content of the data buffer.
|
java.lang.String |
getStringContent()
Get the string content of the data buffer.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
boolean |
isEmpty()
Tell whether the
Buffer is empty. |
Buffer |
newFromData(byte[] data,
int size)
Create a new
Buffer object from existing data. |
Buffer |
newFromString(java.lang.String data)
Create a new
Buffer object from a string. |
void |
setContent(byte[] content,
int size)
Set the content of the data buffer.
|
void |
setSize(int size)
Set the size of the content of the data buffer.
|
void |
setStringContent(java.lang.String content)
Set the string content of the data buffer.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
java.lang.String |
toString() |
@NonNull byte[] getContent()
boolean isEmpty()
Buffer
is empty or not. int getSize()
void setSize(int size)
size
- The size of the content of the data buffer. @NonNull java.lang.String getStringContent()
void setStringContent(@NonNull java.lang.String content)
content
- The string content of the data buffer. void setContent(@NonNull byte[] content, int size)
content
- The content of the data buffer. size
- The size of the content of the data buffer. @NonNull Buffer newFromData(@NonNull byte[] data, int size)
data
- The initial data to store in the LinphoneBuffer. size
- The size of the initial data to stroe in the LinphoneBuffer. Buffer
object. @NonNull Buffer newFromString(@NonNull java.lang.String data)
data
- The initial string content of the LinphoneBuffer. Buffer
object. void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object