TlsStream.read

TlsResult read(ubyte[] buffer)

Reads decrypted application data.

Never returns DONE with zero bytes unless eof is true: an idle read reports NEED_READ instead (see TlsResult).

Parameters

bufferThe buffer to read into.

Returns

A TlsResult with bytes read, or progress/error indicator.