Comments (3)
I agree that the behavior is arguably correct, but not very user-friendly. The
truth
is that since it's difficult to get the name here we probably need to help the
user
in some way.
One option would be to print an error message if the string is NULL. This is a
little inconsistent with its behavior for say, integers, though.
Of course it should probably treat NULL as an empty string...
Likewise, NULL submessages should probably be serialized as 0-length data.
This probably needs to affect the get_packed_size(), pack() and pack_to_buffer()
functions... so 2 field-types (strings + messages) times 3 functions.
Alternately, we could have an optional way to print a warning in this case.
e.g. a
global boolean.
um, patches welcome?
Original comment by [email protected]
on 28 Jan 2009 at 12:18
from protobuf-c.
i committed the fix described to subversion.
Original comment by [email protected]
on 29 Jan 2009 at 2:29
from protobuf-c.
Original comment by [email protected]
on 29 Jan 2009 at 2:30
- Changed state: Fixed
from protobuf-c.
Related Issues (20)
- Don't include names to save space [patch]
- The last version cann't support string now? HOT 2
- VS 2008 compilation issue 0.15 HOT 1
- AF_LOCAL does not exists on Solaris, AIX and HPUX HOT 1
- Choose a build system, and get rid of the unchosen one
- compilation error HOT 3
- autoreconf 2.68 warnings
- optional missing in sub-message HOT 1
- unpack don't merge sub-messages
- giving static ip address to protobuf-c rpc server
- protobuf-c does not compile on 64bit Solaris 11
- structure with 64-bit field is decoded wrong
- ByteSize() doesn't return right value
- protobuf-c build with vc6
- free(): invalid next size (fast) at google/protobuf-c/protobuf-c.c:127
- C++: add a sub-element to a repeated element
- Reopening issue #38.
- protobuf-c requires AF_LOCAL
- protobuf-c does not compile on Solaris 10, as bind/connect/etc. are in libsocket
- Does not compile on Solaris 10, hstrerror in libresolv
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protobuf-c.