Contents

withUnsafeMutableBytes(atOffset:_:)

Accesses the data that a block buffer represents.

Declaration

func withUnsafeMutableBytes<R>(atOffset offset: Int = 0, _ body: (UnsafeMutableRawBufferPointer) throws -> R) throws -> R

Parameters

  • 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