Class Buffer
The object representing a data buffer.
Inherited Members
Namespace: Linphone
Assembly: cs.temp.dll.dll
Syntax
public class Buffer : LinphoneObject
Properties
Content
Get the content of the data buffer.
Declaration
public uint Content { get; }
Property Value
Type | Description |
---|---|
System.UInt32 | The content of the data buffer. |
IsEmpty
Tell whether the Buffer is empty.
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean value telling whether the Buffer is empty or not. |
Size
Get the size of the content of the data buffer.
Declaration
public long Size { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 | The size of the content of the data buffer. |
StringContent
Get the string content of the data buffer.
Declaration
public string StringContent { get; set; }
Property Value
Type | Description |
---|---|
System.String | The string content of the data buffer. |
Methods
NewFromData(UInt32, Int64)
Create a new Buffer object from existing data.
Declaration
public static Buffer NewFromData(uint data, long size)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | data | The initial data to store in the LinphoneBuffer. |
System.Int64 | size | The size of the initial data to stroe in the LinphoneBuffer. |
Returns
Type | Description |
---|---|
Buffer | A new Buffer object. |
NewFromString(String)
Create a new Buffer object from a string.
Declaration
public static Buffer NewFromString(string data)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | The initial string content of the LinphoneBuffer. |
Returns
Type | Description |
---|---|
Buffer | A new Buffer object. |
SetContent(UInt32, Int64)
Set the content of the data buffer.
Declaration
public void SetContent(uint content, long size)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | content | The content of the data buffer. |
System.Int64 | size | The size of the content of the data buffer. |