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