I'm a bit confused about how constructing a builder could be as slow as you
describe it. It's just an object allocation. Granted, two objects need to
be allocated instead of just one, due to the builder design, but object
allocations aren't very expensive. Can you provide more detail on what
Note: I apparently do not have permission to post to hypergraphdb.
On Sun, Apr 11, 2010 at 11:17 PM, Kenton Varda ken...@google.com wrote:
I'm a bit confused about how constructing a builder could be as slow as you
describe it. It's just an object allocation. Granted, two objects need to
This is the compiled proto file.
I want to serialize the message (id, title and teh text).
Can someone please help me out with this.
Thanks in advance.
import java.util.Vector;
import java.io.IOException;
import com.ponderingpanda.protobuf.*;
public class Html implements Message {
I want to serialize the message (id, title and teh text).
Can someone please help me out with this.
You can call yourmessage.toByteArray() (or toByteString()) to get it
as an object, or yourmessage.writeTo(OutputStream) to send it to an
OutputStream.
- Adam
--
You received this message