4 using SiliconStudio.Core.Serialization;
6 namespace SiliconStudio.Core.Storage
11 public partial
struct ObjectId
21 return FromObject(obj, out buffer);
31 public static ObjectId FromObject<T>(T obj, out byte[] buffer)
33 var stream =
new MemoryStream();
35 writer.Serialize(ref obj, ArchiveMode.Serialize);
37 buffer = stream.ToArray();
38 return FromBytes(buffer);
Implements SerializationStream as a binary writer.
A hash to uniquely identify data.