Contents

withUnsafeMutableBytes(_:)

Performs the given closure with an unsafe pointer to the underlying bytes of the data buffer.

Declaration

func withUnsafeMutableBytes<R, E>(_ body: (UnsafeMutableRawBufferPointer) throws(E) -> R) throws(E) -> R where E : Error

Parameters

  • body:

    The closure to perform with the pointer.

See Also

Accessing buffer properties