Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3808 +/- ##
==========================================
+ Coverage 25.57% 25.91% +0.34%
==========================================
Files 667 671 +4
Lines 42967 43219 +252
==========================================
+ Hits 10988 11202 +214
- Misses 30968 30990 +22
- Partials 1011 1027 +16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| var prevNum protowire.Number | ||
| loop: | ||
| for { | ||
| num, typ, n, err := iprotobuf.ParseTag(buf[off:]) |
There was a problem hiding this comment.
If len(buf)==0, here we have an error? Maybe we can do a check at the beginning of the function?
There was a problem hiding this comment.
i dont expect this to be called with empty buffer. If so, this is an error to me
There was a problem hiding this comment.
This depends on use, if used by FSTree directly it can be problematic, empty buffer can appear as a result of a file read (touch fstree/a/b/c/dobj), erroring out is better than panic in this case.
ac5c79e to
525df92
Compare
| var prevNum protowire.Number | ||
| loop: | ||
| for { | ||
| num, typ, n, err := iprotobuf.ParseTag(buf[off:]) |
There was a problem hiding this comment.
This depends on use, if used by FSTree directly it can be problematic, empty buffer can appear as a result of a file read (touch fstree/a/b/c/dobj), erroring out is better than panic in this case.
e0fa335 to
1935f0b
Compare
It turned out that field numbers are needed for flexible protobuf'ing, as in nspcc-dev/neofs-node#3808. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
It turned out that field numbers are needed for flexible protobuf'ing, as in nspcc-dev/neofs-node#3808. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
It turned out that field numbers are needed for flexible protobuf'ing, as in nspcc-dev/neofs-node#3808. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
It turned out that field numbers are needed for flexible protobuf'ing, as in nspcc-dev/neofs-node#3808. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
19b8087 to
c97c332
Compare
Provide functionality which is going to be used for convenient protobuf parsing. In particular, for #3783. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
nspcc-dev/neofs-sdk-go@99622c8...64e3fc2. Motivation for importing constants with protocol field numbers. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
There is no longer and will be no need to declare such constants on site. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Allows to work with object binary w/o full unmarshalling. Going to be used in #3783. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
c97c332 to
ca6ce19
Compare
extracted from #3792