RandomNumberStream.read - multiple declarations
Function RandomNumberStream.read
Fills the buffer new random numbers.
Parameters
Name | Description |
---|---|
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. |
mode | The desired waiting mode for IO operations. |
Throws
CryptoException on error.
Function InputStream.read
Fills the preallocated array 'bytes' with data from the stream.
final abstract void read
(
scope ubyte[] dst
) @safe;
This function will continue read from the stream until the buffer has been fully filled.
Parameters
Name | Description |
---|---|
dst | The buffer into which to write the data that was read |
mode | Optional reading mode (defaults to IOMode ). |
Return
Returns the number of bytes read. The dst
buffer will be filled up
to this index. The return value is guaranteed to be dst
for
IOMode
.
Throws
An exception if the operation reads past the end of the stream
See Also
readOnce
, tryRead
Alias RandomNumberStream.read