Contents

append(length:allocator:range:flags:)

Adds a memory block to an existing block buffer.

Declaration

func append(length: Int, allocator: CFAllocator? = kCFAllocatorDefault, range: Range<Int>? = nil, flags: CMBlockBuffer.Flags = []) throws

Parameters

  • length:

    The length of the memory block in bytes. Must not be zero. This is the size to allocate when you call the Assureblockmemory() function.

  • allocator:

    The allocator to use to allocate the memory block.

  • range:

    The range within the memory block to which the block buffer should refer to data. If this value is nil, the block buffer uses the whole memory block.

  • flags:

    Flags to control the behavior of the operation.

See Also

Modifying a Block Buffer