示例#1
0
 private void writeToStream(Stream s, bool raw, bool le, bool readOnly)
 {
     if (raw)
     {
         BinaryImage.WriteRawImage(s, _words,
                                   le ? ByteOrder.LittleEndian : ByteOrder.BigEndian);
     }
     else
     {
         var headers = new Dictionary <string, string>()
         {
             { "Type", "Floppy" },
             { "Access", readOnly ? "Read-Only" : "Read-Write" },
         };
         BinaryImage.WriteImage(s, _words, headers);
     }
 }