|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Provides extension-style helper methods for working with buffers. More...
#include <buffers_extensions.h>
Static Public Member Functions | |
| template<typename T > | |
| static void | CopyTo (const ReadOnlySequence< T > &source, Span< T > destination) |
| Copies the elements of the given ReadOnlySequence to the destination span. More... | |
| template<typename T > | |
| static SharedPtr< Array< T > > | ToArray (const ReadOnlySequence< T > &sequence) |
| Copies the elements of the given ReadOnlySequence to a newly allocated array. More... | |
Provides extension-style helper methods for working with buffers.
|
inlinestatic |
Copies the elements of the given ReadOnlySequence to the destination span.
| T | The type of elements. |
| source | The sequence whose elements are copied. |
| destination | The destination span to fill. |
|
inlinestatic |
Copies the elements of the given ReadOnlySequence to a newly allocated array.
| T | The type of elements. |
| sequence | The sequence whose elements are copied. |