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


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

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


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

## 另见

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


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 字节 | ArrayPtr\<uint8_t\> | 要填充切片的字节数组。 |
| offset | int | 切片起始索引。 |
| count | int | 切片大小。 |

## 另见

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


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

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


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

## 另见

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


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 字节 | System::Details::ArrayView\<uint8_t\> | 字节数组视图用于填充切片。 |
| offset | int | 切片起始索引。 |
| count | int | 切片大小。 |

## 另见

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


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

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


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

## 另见

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


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

```cpp
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\>\& | 字节栈数组用于填充切片。 |
| offset | int | 切片起始索引。 |
| count | int | 切片大小。 |

## 另见

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