Space Engineers
Public Member Functions | Static Public Attributes | List of all members
VRage.Serialization.BlitCollectionSerializer< T, TData > Class Template Reference

This is not optimal in terms of allocations, but works fine More...

Inheritance diagram for VRage.Serialization.BlitCollectionSerializer< T, TData >:
VRage.Serialization.ISerializer< T >

Public Member Functions

 BlitCollectionSerializer ()
 
void Serialize (ByteStream destination, ref T data)
 
void Deserialize (ByteStream source, out T data)
 

Static Public Attributes

static readonly BlitCollectionSerializer< T, TData > Default = new BlitCollectionSerializer<T, TData>()
 
static readonly BlitSerializer< TData > InnerSerializer = BlitSerializer<TData>.Default
 

Detailed Description

This is not optimal in terms of allocations, but works fine

Type Constraints
T :ICollection<TData> 
T :new() 

Definition at line 11 of file BlitCollectionSerializer.cs.

Constructor & Destructor Documentation

Definition at line 17 of file BlitCollectionSerializer.cs.

Member Function Documentation

void VRage.Serialization.BlitCollectionSerializer< T, TData >.Deserialize ( ByteStream  source,
out T  data 
)
inline

Implements VRage.Serialization.ISerializer< T >.

Definition at line 31 of file BlitCollectionSerializer.cs.

void VRage.Serialization.BlitCollectionSerializer< T, TData >.Serialize ( ByteStream  destination,
ref T  data 
)
inline

Implements VRage.Serialization.ISerializer< T >.

Definition at line 21 of file BlitCollectionSerializer.cs.

Member Data Documentation

readonly BlitCollectionSerializer<T, TData> VRage.Serialization.BlitCollectionSerializer< T, TData >.Default = new BlitCollectionSerializer<T, TData>()
static

Definition at line 14 of file BlitCollectionSerializer.cs.

readonly BlitSerializer<TData> VRage.Serialization.BlitCollectionSerializer< T, TData >.InnerSerializer = BlitSerializer<TData>.Default
static

Definition at line 15 of file BlitCollectionSerializer.cs.


The documentation for this class was generated from the following file: