Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Sources/Subprocess/Buffer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,10 @@ extension AsyncBufferSequence.Buffer {
extension AsyncBufferSequence.Buffer {
/// Access the raw bytes stored in this buffer
/// - Parameter body: A closure with an `UnsafeRawBufferPointer` parameter that
/// points to the contiguous storage for the type. If no such storage exists,
/// the method creates it. If body has a return value, this method also returns
/// that value. The argument is valid only for the duration of the
/// closure’s SequenceOutput.
/// - Returns: The return value, if any, of the body closure parameter.
/// points to the contiguous storage for the buffer. If no such storage exists,
/// the method creates it. The argument is valid only for the duration of the
/// closure's execution.
/// - Returns: The return value of the body closure.
public func withUnsafeBytes<ResultType>(
_ body: (UnsafeRawBufferPointer) throws -> ResultType
) rethrows -> ResultType {
Expand Down
Loading