## RandomNumberGenerator::GetNonZeroBytes(ArrayPtr\<uint8_t\>) method


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

```cpp
virtual void System::Security::Cryptography::RandomNumberGenerator::GetNonZeroBytes(ArrayPtr<uint8_t> bytes)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 字节 | ArrayPtr\<uint8_t\> | 要填充的字节数组。 |

## 另见

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [RandomNumberGenerator](../)
* Namespace [System::Security::Cryptography](../../)
* Library [Aspose.Font for C++](../../../)
## RandomNumberGenerator::GetNonZeroBytes(System::Details::ArrayView\<uint8_t\>) method


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

```cpp
virtual void System::Security::Cryptography::RandomNumberGenerator::GetNonZeroBytes(System::Details::ArrayView<uint8_t> bytes)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 字节 | System::Details::ArrayView\<uint8_t\> | 要填充的字节数组视图。 |

## 另见

* Class [RandomNumberGenerator](../)
* Namespace [System::Security::Cryptography](../../)
* Library [Aspose.Font for C++](../../../)
## RandomNumberGenerator::GetNonZeroBytes(System::Details::StackArray\<uint8_t, N\>\&) method


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 字节 | System::Details::StackArray\<uint8_t, N\>\& | 要填充的字节栈数组。 |

## 另见

* Class [RandomNumberGenerator](../)
* Namespace [System::Security::Cryptography](../../)
* Library [Aspose.Font for C++](../../../)
