## Decimal::GetBytes method


[Convert](../../convert/) the specified [Decimal](../) value to an array of bytes.

```cpp
static void System::Decimal::GetBytes(const Decimal &value, const System::ArrayPtr<uint8_t> &buffer)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const Decimal\& | The [Decimal](../) value to convert |
| buffer | const System::ArrayPtr\<uint8_t\>\& | The output parameter that, if the conversion succeeds, contains the result of conversion when the method returns. |

## See Also

* Class [Decimal](../)
* Typedef [ArrayPtr](../../arrayptr/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
