Contents

read(into:)

Reads data to the specified buffer, not exceeding the buffer’s previously allocated size.

Declaration

func read(into buffer: UnsafeMutableRawBufferPointer) throws -> Int

Parameters

  • buffer:

    The data buffer that the operation fills with the read bytes.

Return Value

The number of bytes read and stored by the stream.

Discussion

This function increments the internal stream position by the number of bytes read by the stream.

See Also

Reading and Writing Data