4 using SiliconStudio.Core.Serialization;
5 using SiliconStudio.Core.Serialization.Serializers;
7 namespace SiliconStudio.Core.Storage
13 public unsafe partial
struct ObjectId
21 bool hasId = obj !=
Empty;
25 fixed (uint* hash = &obj.hash1)
26 stream.Serialize((IntPtr)hash, HashSize);
31 bool hasId = stream.ReadBoolean();
34 var
id =
new byte[HashSize];
35 stream.Serialize(id, 0, HashSize);
36 obj =
new ObjectId(
id);
Base class for implementation of SerializationStream.
Describes how to serialize and deserialize an object without knowing its type. Used as a common base ...
ArchiveMode
Enumerates the different mode of serialization (either serialization or deserialization).