Buffer
public class Buffer : LinphoneObject
The object representing a data buffer.
-
Declaration
Swift
public static func getSwiftObject(cObject: OpaquePointer) -> Buffer -
Declaration
Swift
public var getCobject: OpaquePointer? { get } -
Create a new
Bufferobject from existing data.Declaration
Swift
public static func newFromData(data: UnsafePointer<UInt8>, size: Int) -> Buffer?Parameters
dataThe initial data to store in the LinphoneBuffer.
sizeThe size of the initial data to stroe in the LinphoneBuffer.
Return Value
A new
Bufferobject. -
Create a new
Bufferobject from a string.Declaration
Swift
public static func newFromString(data: String) -> Buffer?Parameters
dataThe initial string content of the LinphoneBuffer.
Return Value
A new
Bufferobject. -
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
Bufferis empty.Declaration
Swift
public var isEmpty: Bool { get }Return Value
A boolean value telling whether the
Bufferis empty or not. -
Set 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.
-
Set the string content of the data buffer.
Declaration
Swift
public var stringContent: String { get set }Return Value
The string content of the data buffer.
-
Assign a user pointer to 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
contentThe content of the data buffer.
sizeThe size of the content of the data buffer.
Buffer Class Reference