GetBytes()

RandomNumberGenerator::GetBytes(ArrayPtr<uint8_t>) method

Fills existing array elements with random bytes.

virtual void System::Security::Cryptography::RandomNumberGenerator::GetBytes(ArrayPtr<uint8_t> bytes)=0

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes array to fill.

RandomNumberGenerator::GetBytes(ArrayPtr<uint8_t>, int, int) method

Fills existing array slice with random bytes.

virtual void System::Security::Cryptography::RandomNumberGenerator::GetBytes(ArrayPtr<uint8_t> bytes, int offset, int count)

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes array to fill slice of.
offsetintSlice beginning index.
countintSlice size.

RandomNumberGenerator::GetBytes(System::Details::ArrayView<uint8_t>) method

Fills existing array view elements with random bytes.

virtual void System::Security::Cryptography::RandomNumberGenerator::GetBytes(System::Details::ArrayView<uint8_t> bytes)

Arguments

ParameterTypeDescription
bytesSystem::Details::ArrayView<uint8_t>Bytes array view to fill.

RandomNumberGenerator::GetBytes(System::Details::ArrayView<uint8_t>, int, int) method

Fills existing array view slice with random bytes.

virtual void System::Security::Cryptography::RandomNumberGenerator::GetBytes(System::Details::ArrayView<uint8_t> bytes, int offset, int count)

Arguments

ParameterTypeDescription
bytesSystem::Details::ArrayView<uint8_t>Bytes array view to fill slice of.
offsetintSlice beginning index.
countintSlice size.

RandomNumberGenerator::GetBytes(System::Details::StackArray<uint8_t, N>&) method

Fills existing stack array elements with random bytes.

template<std::size_t> void System::Security::Cryptography::RandomNumberGenerator::GetBytes(System::Details::StackArray<uint8_t, N> &bytes)

Arguments

ParameterTypeDescription
bytesSystem::Details::StackArray<uint8_t, N>&Bytes stack array to fill.

RandomNumberGenerator::GetBytes(System::Details::StackArray<uint8_t, N>&, int, int) method

Fills existing stack array slice with random bytes.

template<std::size_t> void System::Security::Cryptography::RandomNumberGenerator::GetBytes(System::Details::StackArray<uint8_t, N> &bytes, int offset, int count)

Arguments

ParameterTypeDescription
bytesSystem::Details::StackArray<uint8_t, N>&Bytes stack array to fill slice of.
offsetintSlice beginning index.
countintSlice size.

See Also