# ArcBufferPage.AsMemory(int, int)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.arcbufferpage/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.arcbufferpage/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Buffers/ArcBufferWriter.cs#L922-L928)

```csharp
public Memory<byte> AsMemory(int offset, int length)
```

Creates a new memory region over the portion of the target page beginning at a specified position with a specified length.

### Parameters

- `offset` (`int`): The offset into the array that the memory region starts from.
- `length` (`int`): The length of the memory region.

### Returns

The memory region.
