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
Any empty 'bytes' field on a message, will be decoded into an empty javascript array.
The expected behavior is that it will be decoded into an empty buffer, in order to keep consistency with the case the field has data.
in protobuf js v5 it was decoded into an empty buffer.
The text was updated successfully, but these errors were encountered:
Both 'decode' and 'toObject' return the field as an empty array. So the root cause might be on the 'decode' implementation.
I'm using 'toObjcet' without setting the 'bytes' option (I don't want it base64 or an array, I want it to be kept as Buffer).
protobuf.js version: 6.8.6
Any empty 'bytes' field on a message, will be decoded into an empty javascript array.
The expected behavior is that it will be decoded into an empty buffer, in order to keep consistency with the case the field has data.
The text was updated successfully, but these errors were encountered: