java - Equivalent of ByteSize() in protobuf -


is there equivalent of bytesize() protobuf in java? i'm trying size of protobuf before serializing it.

something like:

protobuf.builder buffer = protobuf.newbuilder();  

i need size of buffer now. idea how obtain it?

build protocol buffer, , call getserializedsize().


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -