Exemplo n.º 1
0
 public abstract Object ReadObject(ISerialisationChannel sc);
Exemplo n.º 2
0
 public abstract void WriteObject(ISerialisationChannel sc, Object obj);
Exemplo n.º 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 ?
        }