Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
9e4dd249
Commit
9e4dd249
authored
Apr 24, 2024
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! proto/msgpack: Fix encoding INVALID_{TID,OID}
parent
37dd83e9
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
116 additions
and
116 deletions
+116
-116
go/neo/proto/protogen.go
go/neo/proto/protogen.go
+2
-2
go/neo/proto/zproto-marshal.go
go/neo/proto/zproto-marshal.go
+114
-114
No files found.
go/neo/proto/protogen.go
View file @
9e4dd249
...
...
@@ -1011,8 +1011,8 @@ func (e *encoderM) genBasic(path string, typ *types.Basic, userType types.Type)
// zodb.Tid and zodb.Oid are encoded as [8]bin or nil
if
userType
==
zodbTid
||
userType
==
zodbOid
{
e
.
emit
(
"if %s == %v {"
,
path
,
INVALID_ID
)
// INVALID_{TID,OID} =>
e
.
emit
(
"data[%v] =
msgpack.Nil"
,
e
.
n
)
// mnil
e
.
emit
(
"if %s == %v {"
,
path
,
INVALID_ID
)
// INVALID_{TID,OID} =>
e
.
emit
(
"data[%v] =
byte(msgpack.Nil)"
,
e
.
n
)
// mnil
e
.
emit
(
"data = data[%v:]"
,
e
.
n
+
1
)
e
.
emit
(
"} else {"
)
e
.
emit
(
"data[%v] = byte(msgpack.Bin8)"
,
e
.
n
);
e
.
n
++
...
...
go/neo/proto/zproto-marshal.go
View file @
9e4dd249
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment