Table of Contents

Class CollectionsSerializer<T>

Namespace
MarymoorStudios.Core.Serialization.System
Assembly
MarymoorStudios.Core.Serialization.dll
public static class CollectionsSerializer<T>

Type Parameters

T
Inheritance
CollectionsSerializer<T>
Inherited Members

Methods

SizeOf(SerializationContext, bool, in ReadOnlySpan<T>)

public static int SizeOf(SerializationContext context, bool isNull, in ReadOnlySpan<T> value)

Parameters

context SerializationContext
isNull bool
value ReadOnlySpan<T>

Returns

int

TryRead<TCollection>(SerializationContext, ref ReadOnlyRowBuffer, Func<int, TCollection>, Func<TCollection, Span<T>>, out TCollection)

public static bool TryRead<TCollection>(SerializationContext context, ref ReadOnlyRowBuffer buffer, Func<int, TCollection> alloc, Func<TCollection, Span<T>> asSpan, out TCollection value) where TCollection : allows ref struct

Parameters

context SerializationContext
buffer ReadOnlyRowBuffer
alloc Func<int, TCollection>
asSpan Func<TCollection, Span<T>>
value TCollection

Returns

bool

Type Parameters

TCollection

Write(SerializationContext, ref RowBuffer, bool, in ReadOnlySpan<T>)

public static void Write(SerializationContext context, ref RowBuffer buffer, bool isNull, in ReadOnlySpan<T> value)

Parameters

context SerializationContext
buffer RowBuffer
isNull bool
value ReadOnlySpan<T>