Exemple #1
0
        public static void WriteToFile(IByteable byteable, string fileName)
        {
            byte[]     b      = new byte[byteable.GetSize()];
            ByteScribe writer = new ByteScribe(b);

            writer.Write(byteable);
            File.WriteAllBytes(fileName, b);
        }
Exemple #2
0
 public void Write(IByteable value)
 {
     value.Write(this);
 }