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
SerializationContextisNull
boolvalue
ReadOnlySpan<T>
Returns
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
SerializationContextbuffer
ReadOnlyRowBufferalloc
Func<int, TCollection>asSpan
Func<TCollection, Span<T>>value
TCollection
Returns
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
SerializationContextbuffer
RowBufferisNull
boolvalue
ReadOnlySpan<T>