2017年4月21日星期五

protobuf中set_allocate_和mutable_

都可以用于嵌套的消息使用,mutable_返回对应消息的指针,set_allocate_中传的指针必须是new出来的堆内存而不能是栈内存。