コード例 #1
0
ファイル: BinaryWriterEx.cs プロジェクト: a-leggett/Storage
 /// <summary>
 /// Writes a <see cref="Double"/> to the <see cref="BaseStream"/>.
 /// </summary>
 /// <param name="value">The value to write.</param>
 public void WriteDouble(Double value)
 {
     byte[] buffer = Binary.GetDoubleBytes(value, WritesLittleEndian);
     BaseStream.Write(buffer, 0, buffer.Length);
 }
コード例 #2
0
ファイル: BinaryWriterEx.cs プロジェクト: a-leggett/Storage
 /// <summary>
 /// Writes a <see cref="UInt16"/> to the <see cref="BaseStream"/>.
 /// </summary>
 /// <param name="value">The value to write.</param>
 public void WriteUInt16(UInt16 value)
 {
     byte[] buffer = Binary.GetUInt16Bytes(value, WritesLittleEndian);
     BaseStream.Write(buffer, 0, buffer.Length);
 }
コード例 #3
0
ファイル: BinaryWriterEx.cs プロジェクト: a-leggett/Storage
 /// <summary>
 /// Writes a <see cref="Int64"/> to the <see cref="BaseStream"/>.
 /// </summary>
 /// <param name="value">The value to write.</param>
 public void WriteInt64(Int64 value)
 {
     byte[] buffer = Binary.GetInt64Bytes(value, WritesLittleEndian);
     BaseStream.Write(buffer, 0, buffer.Length);
 }