Hi all,
I'm trying to read a file using the TextFormat and I'm doing like this:
(line 45) int fd = open(sName.c_str(), O_RDONLY);
(line 46) ZeroCopyInputStream *input = new FileInputStream(fd);
where sName is a string with the name of the file I want to read.
Files:
#include iostream
#include
Hello all,
I have just uploaded version 1.5.0 of the Haskell version to hackage.
The links for the three pieces are:
http://hackage.haskell.org/package/protocol-buffers
http://hackage.haskell.org/package/protocol-buffers-descriptor
http://hackage.haskell.org/package/hprotoc
This catches up
The problem is now solved. The
#include google/protobuf/io/zero_copy_stream_impl.h
line was missing.
Regards,
2009/6/15 Carmen Navarrete carmen.navarr...@gmail.com
Hi all,
I'm trying to read a file using the TextFormat and I'm doing like this:
(line 45) int fd = open(sName.c_str(),
The normal way to do it is to send each Entity as a separate message.
CodedInput/OutputStream is handed for that kind of thing.
--Chris
On Sun, Jun 14, 2009 at 4:14 PM, Alex Black a...@alexblack.ca wrote:
Is there a way to start sending a message before its fully composed?
Say we have
http://code.google.com/apis/protocolbuffers/docs/techniques.html#streaming
On Sun, Jun 14, 2009 at 4:14 PM, Alex Black a...@alexblack.ca wrote:
Is there a way to start sending a message before its fully composed?
Say we have messages like this:
message Entity
{
required int32 id = 1;
This is tricky as the Python API (like the C++ API) has a strong sense of
ownership. Outer messages own the message objects embedded inside them.
In the Python API, this is necessary because assigning a field in an
optional sub-message may also cause the sub-message itself to become present
in
In the Java Generated code, there are functions like ParseFrom
(CodedInputStream ...) that create protocol buffers messages from a
file or other buffer. Can I call these directly from multiple
different threads or should I use a wrapper with the synchronized
keyword?
Thanks,
Wayne