## String::ToByteArray method


Convierte la cadena o subcadena a un arreglo de bytes.

```cpp
ArrayPtr<uint8_t> System::String::ToByteArray(int32_t startIndex=0, int32_t length=INT32_MAX, bool LE=true) const
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| startIndex | int32_t | Índice de inicio de la subcadena. |
| longitud | int32_t | Longitud de la subcadena. |
| LE | bool | Si es verdadero, codifica los caracteres usando endianidad little; de lo contrario, usa endianidad big. |

### ReturnValue

[Array](../../array/) containing bytes representing characters of the string.

## Ver también

* Typedef [ArrayPtr](../../arrayptr/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
