append(referenceOf:range:optimizeDepth:)
Append a reference to a range of another block buffer.
Declaration
mutating func append(referenceOf other: consuming CMMutableDataBlockBuffer, range: Range<Int>? = nil, optimizeDepth: Bool = true)Parameters
- range:
Range of bytes within the other block buffer to append. If
nil, the entire buffer is referenced. - optimizeDepth:
Keep the depth of buffer reference graph to a minimum.
Discussion
The range within the block buffer is not required to be contiguous. Providing out of bounds range will result in a precondition failure.