Example #1
0
        public void WriteHeader(Stream result, int audioPatternCount, int ledPatternCount)
        {
            FileSystemHeader usbFatPacket = new FileSystemHeader
            {
                SoS           = new[] { (byte)'S', (byte)'o', (byte)'S' },
                AudioPatCount = (ushort)audioPatternCount,
                LedPatCount   = (ushort)ledPatternCount
            };
            var b = usbFatPacket.SerializeToBytes();

            result.Write(b, 0, b.Length);
            Write32BytePadding(result);
        }
 public void WriteHeader(Stream result, int audioPatternCount, int ledPatternCount)
 {
     FileSystemHeader usbFatPacket = new FileSystemHeader
     {
         SoS = new[] { (byte)'S', (byte)'o', (byte)'S' },
         AudioPatCount = (ushort)audioPatternCount,
         LedPatCount = (ushort)ledPatternCount
     };
     var b = usbFatPacket.SerializeToBytes();
     result.Write(b, 0, b.Length);
     Write32BytePadding(result);
 }