Ejemplo n.º 1
0
 /// <inheritdoc/>
 public override void Serialize(ref double obj, ArchiveMode mode, SerializationStream stream)
 {
     stream.Serialize(ref obj);
 }
Ejemplo 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);
 }
Ejemplo 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));
 }
Ejemplo 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));
 }
Ejemplo 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);
 }
Ejemplo n.º 6
0
 /// <inheritdoc/>
 public override void Serialize(ref byte[] obj, ArchiveMode mode, SerializationStream stream)
 {
     stream.Serialize(obj, 0, obj.Length);
 }