Пример #1
0
 public void  WriteTo(FCSerialize ar)
 {
     ar.ProtobufWrite(name, 1, PB_ZipType.PB_Zip_Varint);
     ar.ProtobufWrite(age, 2, PB_ZipType.PB_Zip_Varint);
     ar.ProtobufWrite(address, 3, PB_ZipType.PB_Zip_Varint);
     ar.ProtobufWrite(contacts, 4, PB_ZipType.PB_Zip_Varint);
 }
Пример #2
0
    public void  WriteTo(FCSerialize ar)
    {
        ar.ProtobufWrite(name, 1, PB_ZipType.PB_Zip_Varint);
        ar.ProtobufWrite(phonenumber, 2, PB_ZipType.PB_Zip_Varint);
        switch (_oneof_case_0)
        {
        case 3:
            ar.ProtobufWrite(val1, 3, PB_ZipType.PB_Zip_Varint);
            break;

        case 4:
            ar.ProtobufWrite(val2, 4, PB_ZipType.PB_Zip_Varint);
            break;

        default:
            break;
        }
        ar.ProtobufWriteMap(map_test, 5, PB_ZipType.PB_Zip_Varint, PB_ZipType.PB_Zip_Varint);
    }
Пример #3
0
 public void  WriteTo(FCSerialize ar)
 {
     ar.ProtobufWrite(value, 1, PB_ZipType.PB_Zip_Varint);
 }
Пример #4
0
    public void  WriteTo(FCSerialize ar)
    {
        ar.ProtobufWrite(value, 1, PB_ZipType.PB_Zip_Varint);
        ar.ProtobufWrite(optional_bytes, 2, PB_ZipType.PB_Zip_Varint);
        ar.ProtobufWrite(optional_data, 3, PB_ZipType.PB_Zip_Varint);
        ar.ProtobufWrite(second_data, 4, PB_ZipType.PB_Zip_Varint);
        switch (_oneof_case_0)
        {
        case 5:
            ar.ProtobufWrite(str_data, 5, PB_ZipType.PB_Zip_Varint);
            break;

        case 6:
            ar.ProtobufWrite(int_data, 6, PB_ZipType.PB_Zip_Varint);
            break;

        case 7:
            ar.ProtobufWrite(message_data, 7, PB_ZipType.PB_Zip_Varint);
            break;

        case 8:
            ar.ProtobufWrite(more_data, 8, PB_ZipType.PB_Zip_Varint);
            break;

        default:
            break;
        }
        switch (_oneof_case_1)
        {
        case 9:
            ar.ProtobufWrite(str_data3, 9, PB_ZipType.PB_Zip_Varint);
            break;

        case 10:
            ar.ProtobufWrite(int_data3, 10, PB_ZipType.PB_Zip_Varint);
            break;

        case 11:
            ar.ProtobufWrite(message_data3, 11, PB_ZipType.PB_Zip_Varint);
            break;

        case 12:
            ar.ProtobufWrite(more_data3, 12, PB_ZipType.PB_Zip_Varint);
            break;

        default:
            break;
        }
    }