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. -
Get the size of the content of the data buffer.
Declaration
Swift
public var size: Int { get set }
Return Value
The size of the content of the data buffer.
-
Get the string content of the data buffer.
Declaration
Swift
public var stringContent: String { get set }
Return Value
The string content of the data buffer.
-
Retrieve the user pointer associated with the buffer.
Declaration
Swift
public var userData: UnsafeMutableRawPointer? { get set }
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.