示例#1
0
 public static void WriteUInt32(Stream stream, uint value)
 {
     byte[] bytes = LittleEndianConverter.GetBytes(value);
     stream.Write(bytes, 0, bytes.Length);
 }
示例#2
0
 public static void WriteGuid(byte[] buffer, int offset, Guid value)
 {
     byte[] bytes = LittleEndianConverter.GetBytes(value);
     Array.Copy(bytes, 0, buffer, offset, bytes.Length);
 }