read(into:atOffset:)
Reads data at the supplied offset to the specified buffer, not exceeding the buffer’s previously allocated size.
Declaration
func read(into buffer: UnsafeMutableRawBufferPointer, atOffset offset: Int64) throws -> IntParameters
- buffer:
The data buffer that the operation fills with the read bytes.
- offset:
The stream position of the segment that the operation reads.
Return Value
The number of bytes read by the stream.