withUnsafeMutableBytes(atOffset:_:)
Accesses the data that a block buffer represents.
Declaration
func withUnsafeMutableBytes<R>(atOffset offset: Int = 0, _ body: (UnsafeMutableRawBufferPointer) throws -> R) throws -> RParameters
- offset:
An offset within the buffer’s offset range.
- body:
A closure the system calls with an Unsafemutablerawbufferpointer parameter that points to contiguous storage in the block buffer.
Return Value
The value, if any, that the body parameter returns
See Also
Modifying a Block Buffer
append(length:allocator:range:flags:)append(buffer:allocator:flags:)append(buffer:allocator:flags:)append(length:allocator:deallocator:range:flags:)append(buffer:deallocator:flags:)append(buffer:deallocator:flags:)CMBlockBuffer.CustomBlockAllocatorCMBlockBuffer.CustomBlockDeallocatorappend(bufferReference:flags:)assureBlockMemory()