Google Protocol Buffers: parseDelimitedFrom and writeDelimitedTo for C++

后端 未结 2 914
臣服心动
臣服心动 2021-01-05 06:54

Sorry to ask this again, but could we please once and for all post some C++ functions that match the Java ones here? They don\'t seem to be getting added by google, and it i

2条回答
  •  北海茫月
    2021-01-05 07:39

    I know this question has been answered, but the question is super old now, and updates have been made to the protobuf code repository since then.

    Protobuf now has these functions under the header file here:

    #include 
    

    You can check out the associated cpp file on the git repo here. I have tried out the functions with a boost socket and they work as expected.

提交回复
热议问题