We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7992a4 commit 2b2807eCopy full SHA for 2b2807e
src/utils.jl
@@ -9,7 +9,7 @@ end
9
function serialize_proto(data)
10
pb = PipeBuffer()
11
encode(ProtoEncoder(pb), data)
12
- return view(pb.data, 1:pb.size) # Do not return additional zeros
+ return take!(pb) # Do not return additional zeros
13
end
14
15
"""
0 commit comments