RandomNumberStream.read - multiple declarations
Fills the buffer new random numbers.
abstract override ulong read (
scope ubyte dst,
|dst||The buffer that will be filled with random numbers. It will contain buffer.length random ubytes. Supportes both heap-based and stack-based arrays.|
CryptoException on error.
Fills the preallocated array 'bytes' with data from the stream.
final abstract void read (
scope ubyte dst
This function will continue read from the stream until the buffer has been fully filled.
|dst||The buffer into which to write the data that was read|
|mode|| Optional reading mode (defaults to |
Returns the number of bytes read. The
dst buffer will be filled up
to this index. The return value is guaranteed to be
An exception if the operation reads past the end of the stream
alias read ;