Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
HashSerializationWriter.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.IO;
5 
6 namespace SiliconStudio.Core.Serialization
7 {
9  {
10  public HashSerializationWriter(Stream outputStream) : base(outputStream)
11  {
12  }
13 
14  /// <inheritdoc/>
15  public unsafe override void Serialize(ref string value)
16  {
17  fixed (char* bufferStart = value)
18  {
19  Serialize((IntPtr)bufferStart, sizeof(char) * value.Length);
20  }
21  }
22  }
23 }
unsafe override void Serialize(ref string value)
Serializes the specified string value. The value to serialize
Implements SerializationStream as a binary writer.