digideskio / protobuf-c

Automatically exported from code.google.com/p/protobuf-c
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

zero-copy 'bytes' unpacking option? #71

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Have you considered avoiding copying 'bytes' fields by just pointing to the 
parsed buffer rather than copying it? I realize this would have to be an option 
or a new interface, since this would make it no longer safe to deallocate the 
parsed buffer until the unpacked message is released.

Original issue reported on code.google.com by jdnews...@gmail.com on 20 Sep 2011 at 9:16

GoogleCodeExporter commented 8 years ago
yes, this would be great to have.  i am planning on cramming more API into the 
Allocator, this might be a good one.

Original comment by lahike...@gmail.com on 2 Nov 2011 at 3:20