Exemplo n.º 1
0
        public static bool Write(IWriter writer, Struct0.Innser val, string name = null)
        {
            if (!writer.StructBegin(Struct0.Innser.HASH_CODE, name))
            {
                return(false);
            }

            Write(writer, val.a, "a");
            Write(writer, val.b, "b");

            return(writer.StructEnd());
        }
Exemplo n.º 2
0
        public static bool Read(IReader reader, ref Struct0.Innser val, string name = null)
        {
            if (!reader.StructBegin(Struct0.Innser.HASH_CODE, name))
            {
                return(false);
            }

            Read(reader, ref val.a, "a");
            Read(reader, ref val.b, "b");

            return(reader.StructEnd());
        }