System::Security::Cryptography::RandomNumberGenerator::GetBytes 方法

RandomNumberGenerator::GetBytes(ArrayPtr<uint8_t>) method

用随机字节填充现有数组元素。

virtual void System::Security::Cryptography::RandomNumberGenerator::GetBytes(ArrayPtr<uint8_t> bytes)=0
ParameterType描述
字节ArrayPtr<uint8_t>要填充的字节数组。

另见

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

用随机字节填充现有数组切片。

virtual void System::Security::Cryptography::RandomNumberGenerator::GetBytes(ArrayPtr<uint8_t> bytes, int offset, int count)
ParameterType描述
字节ArrayPtr<uint8_t>用于填充切片的字节数组。
offsetint切片起始索引。
countint切片大小。

另见

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

用随机字节填充现有数组视图元素。

virtual void System::Security::Cryptography::RandomNumberGenerator::GetBytes(System::Details::ArrayView<uint8_t> bytes)
ParameterType描述
字节System::Details::ArrayView<uint8_t>用于填充的字节数组视图。

另见

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

用随机字节填充现有数组视图切片。

virtual void System::Security::Cryptography::RandomNumberGenerator::GetBytes(System::Details::ArrayView<uint8_t> bytes, int offset, int count)
ParameterType描述
字节System::Details::ArrayView<uint8_t>用于填充切片的字节数组视图。
offsetint切片起始索引。
countint切片大小。

另见

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

用随机字节填充现有栈数组元素。

template<std::size_t> void System::Security::Cryptography::RandomNumberGenerator::GetBytes(System::Details::StackArray<uint8_t, N> &bytes)
ParameterType描述
字节System::Details::StackArray<uint8_t, N>&用于填充的字节栈数组。

另见

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

用随机字节填充现有栈数组切片。

template<std::size_t> void System::Security::Cryptography::RandomNumberGenerator::GetBytes(System::Details::StackArray<uint8_t, N> &bytes, int offset, int count)
ParameterType描述
字节System::Details::StackArray<uint8_t, N>&用于填充切片的字节栈数组。
offsetint切片起始索引。
countint切片大小。

另见