AVBuffer

public final class AVBuffer

Undocumented

  • The data buffer.

    Declaration

    Swift

    public var data: UnsafeMutablePointer<UInt8> { get }
  • The size of data in bytes.

    Declaration

    Swift

    public var size: Int { get }
  • The reference count held by the buffer.

    Declaration

    Swift

    public var refCount: Int { get }
  • A Boolean value indicating whether this buffer is writable. true if and only if this is the only reference to the underlying buffer.

    Declaration

    Swift

    public var isWritable: Bool { get }
  • Reallocate a given buffer.

    Declaration

    Swift

    public func realloc(size: Int)

    Parameters

    size

    required new buffer size

  • Create a writable reference from a given buffer reference, avoiding data copy if possible.

    Do nothing if the frame is writable, allocate new buffers and copy the data if it is not.

    Declaration

    Swift

    public func makeWritable()
  • Create a new reference to an AVBuffer.

    Declaration

    Swift

    public func ref() -> AVBuffer?

    Return Value

    a new AVBuffer referring to the same underlying buffer or nil on failure.

  • Free a given reference and automatically free the buffer if there are no more references to it.

    Declaration

    Swift

    public func unref()