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

RandomNumberGenerator::GetBytes(ArrayPtr<uint8_t>) method

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

virtual void System::Security::Cryptography::RandomNumberGenerator::GetBytes(ArrayPtr<uint8_t> bytes)=0
参数类型描述
字节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)
参数类型描述
字节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)
参数类型描述
字节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)
参数类型描述
字节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)
参数类型描述
字节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)
参数类型描述
字节System::Details::StackArray<uint8_t, N>&字节栈数组用于填充切片。
offsetint切片起始索引。
countint切片大小。

另见