vibe.d beta banner
get vibe.d
0.8.0

Asynchronous I/O that doesn’t get in your way, written in D

SystemRNG.read - multiple declarations

Function SystemRNG.read

ulong read (
  scope ubyte[] buffer,
  IOMode mode
) @trusted;

Function InputStream.read

Fills the preallocated array 'bytes' with data from the stream.

final abstract void read (
  scope ubyte[] dst
) @safe;

Throws

An exception if the operation reads past the end of the stream

Function RandomNumberStream.read

Fills the buffer new random numbers.

abstract override ulong read (
  scope ubyte[] dst,
  IOMode mode
) @safe;

Parameters

NameDescription
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.

Throws

CryptoException on error.

Alias SystemRNG.read

class SystemRNG
{
  // ...
  alias read ;
  // ...
}
Authors

Ilya Shipunov

Copyright

© 2013 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.