You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cool feature. This commit (61c25a2) adds a serialize keyword argument which gets a function. Any function can be given to Stream class by this argument which serializes input objects to byte strings. This can also be lambda obj: obj for your purpose. By default, it calls SerializeToString method of input objects.
Feature request:
The low-level method open supports reading a file and iterating over bytes, ie just before calling ParseFromString: https://github.com/cartoonist/pystream-protobuf/wiki/Reading-from-a-stream#low-level-method-open
How about adding the same support on the writing side, ie add an option not to call SerializeToString?
This would allows to use the library with anything that can be serialized to bytes, not only protocol messages.
The text was updated successfully, but these errors were encountered: