Buffer
public class Buffer : LinphoneObject
The object representing a data buffer.
-
Undocumented
Declaration
Swift
public static func getSwiftObject(cObject: OpaquePointer) -> Buffer
-
Undocumented
Declaration
Swift
public var getCobject: OpaquePointer? { get }
-
Create a new
Buffer
object from existing data.Declaration
Swift
public static func newFromData(data: UnsafePointer<UInt8>, size: Int) -> Buffer?
Parameters
data
The initial data to store in the LinphoneBuffer.
size
The size of the initial data to stroe in the LinphoneBuffer.
Return Value
A new
Buffer
object. -
Create a new
Buffer
object from a string.Declaration
Swift
public static func newFromString(data: String) -> Buffer?
Parameters
data
The initial string content of the LinphoneBuffer.
Return Value
A new
Buffer
object. -
Get the content of the data buffer.
Declaration
Swift
public var content: UnsafePointer<UInt8> { get }
Return Value
The content of the data buffer.
-
Tell whether the
Buffer
is empty.Declaration
Swift
public var isEmpty: Bool { get }
Return Value
A boolean value telling whether the
Buffer
is empty or not. -
Set the size of the content of the data buffer.
Declaration
Swift
public var size: Int { get set }
Parameters
size
The size of the content of the data buffer. Get the size of the content of the data buffer.
Return Value
The size of the content of the data buffer.
-
Set the string content of the data buffer.
Declaration
Swift
public var stringContent: String { get set }
Parameters
content
The string content of the data buffer.
Get the string content of the data buffer.Return Value
The string content of the data buffer.
-
Assign a user pointer to the buffer.
Declaration
Swift
public var userData: UnsafeMutableRawPointer? { get set }
Parameters
userData
The user pointer to associate with the buffer.
Retrieve the user pointer associated with the buffer.Return Value
The user pointer associated with the buffer.
-
Set the content of the data buffer.
Declaration
Swift
public func setContent(content: UnsafePointer<UInt8>, size: Int)
Parameters
content
The content of the data buffer.
size
The size of the content of the data buffer.