Esempio n. 1
0
 public static void WriteInt64(byte[] buffer, int offset, long value)
 {
     byte[] bytes = BigEndianConverter.GetBytes(value);
     Array.Copy(bytes, 0, buffer, offset, bytes.Length);
 }
Esempio n. 2
0
 public static void WriteUInt16(Stream stream, ushort value)
 {
     byte[] bytes = BigEndianConverter.GetBytes(value);
     stream.Write(bytes, 0, bytes.Length);
 }
Esempio n. 3
0
 public static void WriteGuidBytes(Stream stream, Guid value)
 {
     byte[] bytes = BigEndianConverter.GetBytes(value);
     stream.Write(bytes, 0, bytes.Length);
 }
Esempio n. 4
0
 public static void WriteInt64(Stream stream, long value)
 {
     byte[] bytes = BigEndianConverter.GetBytes(value);
     stream.Write(bytes, 0, bytes.Length);
 }
Esempio n. 5
0
 public static void WriteUInt24(byte[] buffer, int offset, uint value)
 {
     byte[] bytes = BigEndianConverter.GetBytes(value);
     Array.Copy(bytes, 1, buffer, offset, 3);
 }
Esempio n. 6
0
 public static void WriteUInt24(Stream stream, uint value)
 {
     byte[] bytes = BigEndianConverter.GetBytes(value);
     stream.Write(bytes, 1, 3);
 }