System::Security::Cryptography::RandomNumberGenerator::GetBytes method

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
ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes array to fill.

See Also

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)
ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes array to fill slice of.
offsetintSlice beginning index.
countintSlice size.

See Also

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)
ParameterTypeDescription
bytesSystem::Details::ArrayView<uint8_t>Bytes array view to fill.

See Also

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)
ParameterTypeDescription
bytesSystem::Details::ArrayView<uint8_t>Bytes array view to fill slice of.
offsetintSlice beginning index.
countintSlice size.

See Also

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)
ParameterTypeDescription
bytesSystem::Details::StackArray<uint8_t, N>&Bytes stack array to fill.

See Also

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)
ParameterTypeDescription
bytesSystem::Details::StackArray<uint8_t, N>&Bytes stack array to fill slice of.
offsetintSlice beginning index.
countintSlice size.

See Also