<PackageReference Include="Relativity.OutsideIn" Version="2021.5.0" />

MemoryMarshal

public static class MemoryMarshal
public static Span<byte> AsBytes<T>(Span<T> span) where T : struct

public static ReadOnlySpan<byte> AsBytes<T>(ReadOnlySpan<T> span) where T : struct

public static Memory<T> AsMemory<T>(ReadOnlyMemory<T> memory)

public static Span<TTo> Cast<TFrom, TTo>(Span<TFrom> span) where TFrom : struct where TTo : struct

public static ReadOnlySpan<TTo> Cast<TFrom, TTo>(ReadOnlySpan<TFrom> span) where TFrom : struct where TTo : struct

public static Memory<T> CreateFromPinnedArray<T>(T[] array, int start, int length)

public static ref T GetReference<T>(Span<T> span)

public static ref T GetReference<T>(ReadOnlySpan<T> span)

public static T Read<T>(ReadOnlySpan<byte> source) where T : struct

public static IEnumerable<T> ToEnumerable<T>(ReadOnlyMemory<T> memory)

public static bool TryGetArray<T>(ReadOnlyMemory<T> memory, out ArraySegment segment)

public static bool TryGetMemoryManager<T, TManager>(ReadOnlyMemory<T> memory, out TManager manager) where TManager : MemoryManager<T>

public static bool TryGetMemoryManager<T, TManager>(ReadOnlyMemory<T> memory, out TManager manager, out int start, out int length) where TManager : MemoryManager<T>

public static bool TryGetString(ReadOnlyMemory<char> memory, out string text, out int start, out int length)

public static bool TryRead<T>(ReadOnlySpan<byte> source, out T value) where T : struct

public static bool TryWrite<T>(Span<byte> destination, ref T value) where T : struct

public static void Write<T>(Span<byte> destination, ref T value) where T : struct