Table of Contents

Interface IMemoryResizer

Namespace
MarymoorStudios.Core.Serialization
Assembly
MarymoorStudios.Core.Serialization.dll
public interface IMemoryResizer

Methods

Resize(Memory<byte>, int)

Resizes a memory block (copying any existing content).

Memory<byte> Resize(Memory<byte> memory, int minSize)

Parameters

memory Memory<byte>

Existing buffer.

minSize int

The minimum size of the new buffer.

Returns

Memory<byte>

A new buffer that is at least as large as "minSize".