[protobuf] [Announcement] Protocol Buffers Version 27.0-rc3 is Released!

2024-05-14 Thread 'Hong Shin' via Protocol Buffers
You can view the release and complete release notes on GitHub
.

If you experience any issues with the release, please file a bug
 or post on the
Protocol Buffers forum .

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CAJwAuCg1Qhnt1nXo2KK7OtpuY7z5H2uVE_0PaiOc_dFfyKU83w%40mail.gmail.com.


[protobuf] Protocol Buffers Version 24.3 is Released!

2023-09-07 Thread 'Hong Shin' via Protocol Buffers
This version includes the following non-breaking changes:

C++

   -

   Workaround ICE on gcc 7.5 by not having one overload call the other one
   with a (#13808 )
   (398a84c
   

   )

Python C-Extension (Default)

   -

   Added malloc_trim() calls to Python allocator so RSS will decrease when
   memory is freed (protocolbuffers/upb@b0f5d5d
   

   )

UPB (Python/PHP/Ruby C-Extension)

   -

   fix a Python memory leak in ByteSize() (#1243
   ) (e45a6d5
   

   )


You can view the release on GitHub
.
If you experience any issues with the release, please file a bug
 or post on the
Protocol Buffers forum .

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CAJwAuCi2-1%3DHx3Wyc-mOQs4zSCtDY2t0VM7d9u%2BgVC6EV6beLA%40mail.gmail.com.


[protobuf] Re: How to control the output size of GzipOutputStream?

2011-05-23 Thread Shin
There is another problem.

If I use FileOutputStream, the message would not be flush whether
Flush() is be used or not.
It would be flush until the file descriptor is closed.

It is still the EOF's problem?
if yes, it looks not suitable for socket programing.

I have seem the same problem on SerializeToFileDescriptor.

Thanks

 On 5月20日, 下午11時19分, Jason Hsueh jas...@google.com wrote:
 Haven't used stringbuf before, but it looks like that just sets the internal
 buffer for the stringbuf. You are going through a few layers of buffering
 here; you probably want to just directly use a ZeroCopyOutputStream
 implementation that writes to the socket, like FileOutputStream, which
 allows you to control the buffer size. Then just have GzipOutputStream wap
 that instead of an OstreamOutputStream.







 On Fri, May 20, 2011 at 3:29 AM, Shin for.shin1...@gmail.com wrote:
  I attempt to use compressed data for my socket programing.
  The problem is the fixed output buffer size.

  Message *request;
  char buf[512];
  stringbuf sbuf;
  sbuf.pubsetbuf((char*)buf, sizeof(buf));
  ostream os(sbuf);
  OstreamOutputStream *oos = new OstreamOutputStream(os);
  GzipOutputStream *gzout = new GzipOutputStream(oos);
  request-SerializeToZeroCopyStream(gzout);

  write(sd, buf, sizeof(buf));

  I wanna use a loop to send the data.
  But I don't know how to control the stream to output fixed-size data.

  Thanks.

  --
  You received this message because you are subscribed to the Google Groups
  Protocol Buffers group.
  To post to this group, send email to protobuf@googlegroups.com.
  To unsubscribe from this group, send email to
  protobuf+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/protobuf?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] How to control the output size of GzipOutputStream?

2011-05-20 Thread Shin
I attempt to use compressed data for my socket programing.
The problem is the fixed output buffer size.

Message *request;
char buf[512];
stringbuf sbuf;
sbuf.pubsetbuf((char*)buf, sizeof(buf));
ostream os(sbuf);
OstreamOutputStream *oos = new OstreamOutputStream(os);
GzipOutputStream *gzout = new GzipOutputStream(oos);
request-SerializeToZeroCopyStream(gzout);

write(sd, buf, sizeof(buf));

I wanna use a loop to send the data.
But I don't know how to control the stream to output fixed-size data.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Re: undefined reference to GzipInputStream

2011-05-19 Thread Shin
thanks, the problem has been solved.
I reinstalled the newest version of protobuf.

On 5月19日, 上午12時58分, Kenton Varda ken...@google.com wrote:
 GzipInputStream is only compiled into the library if zlib is available,
 since it depends on zlib.  On Unix you should be able to fix this by
 installing libz.so, on MSVC you may need to modify the project files a bit.







 On Wed, May 18, 2011 at 12:18 AM, Shin for.shin1...@gmail.com wrote:
  I'm learning how to use the gzip stream.
  The error msg always bother me.
  It saying:

   undefined reference to

  `google::protobuf::io::GzipInputStream::GzipInputStream(google::protobuf::i 
  o::ZeroCopyInputStream*,
  google::protobuf::io::GzipInputStream::Format, int)

  It seems only found the header file but no dynamic lib.
  Does it mean I didn't install the lib correctly?
  I have installed the newest zlib version and re-installed the
  protobuf, but the problem is still existing.

  Thanks for ur help.

  --
  You received this message because you are subscribed to the Google Groups
  Protocol Buffers group.
  To post to this group, send email to protobuf@googlegroups.com.
  To unsubscribe from this group, send email to
  protobuf+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/protobuf?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] undefined reference to GzipInputStream

2011-05-18 Thread Shin
I'm learning how to use the gzip stream.
The error msg always bother me.
It saying:

 undefined reference to
`google::protobuf::io::GzipInputStream::GzipInputStream(google::protobuf::io::ZeroCopyInputStream*,
google::protobuf::io::GzipInputStream::Format, int)

It seems only found the header file but no dynamic lib.
Does it mean I didn't install the lib correctly?
I have installed the newest zlib version and re-installed the
protobuf, but the problem is still existing.

Thanks for ur help.

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.