---
title: "System::Buffers::BuffersExtensions class"
url: "https://reference.aspose.com/pdf/cpp/system.buffers/buffersextensions/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Buffers::BuffersExtensions class. Provides extension-style helper methods for working with buffers in C++."
---

## BuffersExtensions class


Provides extension-style helper methods for working with buffers.

```cpp
class BuffersExtensions
```

## Methods

| Method | Description |
| --- | --- |
| static [CopyTo](./copyto/)(const ReadOnlySequence\<T\>\&, Span\<T\>) | Copies the elements of the given [ReadOnlySequence](../readonlysequence/) to the destination span. |
| static [ToArray](./toarray/)(const ReadOnlySequence\<T\>\&) | Copies the elements of the given [ReadOnlySequence](../readonlysequence/) to a newly allocated array. |
## See Also

* Namespace [System::Buffers](../)
* Library [Aspose.PDF for C++](../../)
