コード例 #1
0
        public static bool Write(IWriter writer, Msg.Inner val, string name = null)
        {
            if (!writer.StructBegin(Msg.Inner.HASH_CODE, name))
            {
                return(false);
            }

            Write(writer, val.idx, "idx");
            Write(writer, val.name, "name");

            return(writer.StructEnd());
        }
コード例 #2
0
        public static bool Read(IReader reader, ref Msg.Inner val, string name = null)
        {
            if (!reader.StructBegin(Msg.Inner.HASH_CODE, name))
            {
                return(false);
            }

            Read(reader, ref val.idx, "idx");
            Read(reader, ref val.name, "name");

            return(reader.StructEnd());
        }