Exemplo n.º 1
0
 /// <inheritdoc/>
 public override void Serialize(ref double obj, ArchiveMode mode, SerializationStream stream)
 {
     stream.Serialize(ref obj);
 }
Exemplo n.º 2
0
 public override void Serialize(ref ParameterCollection parameterCollection, ArchiveMode mode, SerializationStream stream)
 {
     stream.Serialize(ref parameterCollection.parameterKeyInfos, mode);
     stream.SerializeExtended(ref parameterCollection.ObjectValues, mode);
     stream.Serialize(ref parameterCollection.DataValues, mode);
 }
Exemplo n.º 3
0
 public override unsafe void Serialize(ref Face face, ArchiveMode mode, SerializationStream stream)
 {
     fixed(Face *facePtr = &face)
     stream.Serialize((IntPtr)facePtr, sizeof(Face));
 }
Exemplo n.º 4
0
 public override unsafe void Serialize(ref Tetrahedron tetrahedron, ArchiveMode mode, SerializationStream stream)
 {
     fixed(Tetrahedron *tetrahedronPtr = &tetrahedron)
     stream.Serialize((IntPtr)tetrahedronPtr, sizeof(Tetrahedron));
 }
Exemplo n.º 5
0
 public override void Serialize(ref Header obj, ArchiveMode mode, SerializationStream stream)
 {
     stream.Serialize(ref obj.MagicHeader);
     stream.Serialize(ref obj.Size);
     stream.Serialize(ref obj.Crc);
 }
Exemplo n.º 6
0
 /// <inheritdoc/>
 public override void Serialize(ref byte[] obj, ArchiveMode mode, SerializationStream stream)
 {
     stream.Serialize(obj, 0, obj.Length);
 }