---
title: "System::Buffers::ReadOnlySequence::get_FirstSpan method"
url: "https://reference.aspose.com/pdf/cpp/system.buffers/readonlysequence/get_firstspan/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Buffers::ReadOnlySequence::get_FirstSpan method. Gets the first memory block of the sequence as a read-only span in C++."
---

## ReadOnlySequence::get_FirstSpan method


Gets the first memory block of the sequence as a read-only span.

```cpp
ReadOnlySpan<T> System::Buffers::ReadOnlySequence<T>::get_FirstSpan() const
```


### ReturnValue

A [ReadOnlySpan<T>](../../../system/readonlyspan/) covering the first segment.

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [ReadOnlySequence](../)
* Namespace [System::Buffers](../../)
* Library [Aspose.PDF for C++](../../../)
