FiberSelectReader.read

Reads T.sizeof bytes from the socket and writes it to 'value' Suspends if not enough data is available and resumes when the data became available

class FiberSelectReader
typeof(this)
read
(
T
)
(
ref T value
)

Parameters

value T

reference to a variable to be filled

Return Value

Type: typeof(this)

this instance

Throws

IOException if no data were received and won't arrive later: - IOWarning on end-of-flow condition or if the remote hung up, - IOError (IOWarning subclass) on I/O error.

Meta