Receives TLS-encrypted data from stream
, which must conform to StreamInterface
. Returns number of bytes that have been read, populated inside iovecs
. A return value of zero bytes does not mean end of stream. Instead, check the eof()
for the end of stream. The eof()
may be true after any call to read
, including when greater than zero bytes are returned, and this function asserts that eof()
is false
. See readv
for a higher level function that has the same, familiar API as other read functions, such as std.fs.File.read
.