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
a1ef272f
Commit
a1ef272f
authored
Jan 15, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go/neo/proto: Cosmetics
parent
e8143557
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
go/neo/proto/proto.go
go/neo/proto/proto.go
+1
-1
go/neo/proto/protogen.go
go/neo/proto/protogen.go
+3
-1
No files found.
go/neo/proto/proto.go
View file @
a1ef272f
...
...
@@ -106,7 +106,7 @@ type PktHeaderN struct {
MsgLen
packed
.
BE32
// payload message length (excluding packet header)
}
// Msg is the interface
implemented by all NEO messages
.
// Msg is the interface
representing a NEO message
.
type
Msg
interface
{
// marshal/unmarshal into/from wire format:
...
...
go/neo/proto/protogen.go
View file @
a1ef272f
...
...
@@ -478,7 +478,7 @@ func typeSizeFixed(encoding byte, typ types.Type) (wireSize int, ok bool) {
return
size
.
num
,
true
}
// interface of a codegenerator (for sizer/coder/decoder)
// interface of a codegenerator (for sizer/
en
coder/decoder)
type
CodeGenerator
interface
{
// codegenerator generates code for this encoding
encoding
()
byte
...
...
@@ -904,6 +904,8 @@ func (d *decoderCommon) generatedCode() string {
return
code
.
String
()
}
// ---- basic types ----
// N: emit code to size/encode/decode basic fixed type
func
(
s
*
sizerN
)
genBasic
(
path
string
,
typ
*
types
.
Basic
,
userType
types
.
Type
)
{
basic
:=
basicTypesN
[
typ
.
Kind
()]
...
...
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