Example #1
0
 public abstract Object ReadObject(ISerialisationChannel sc);
Example #2
0
 public abstract void WriteObject(ISerialisationChannel sc, Object obj);
Example #3
0
        static void WriteFileHeader(ISerialisationChannel sc)
        {
            // file type
            sc.Write <Byte> ((Byte)'C');
            sc.Write <Byte> ((Byte)'B');
            sc.Write <Byte> ((Byte)'A');

            // file version
            sc.Write <Byte> ((Byte)0);

            // platform index
            sc.Write <Byte> ((Byte)0);

            // total filesize
            // ? why does xna have this ?
        }