Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
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
Stefane Fermigier
neo
Commits
9888b7dc
Commit
9888b7dc
authored
7 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7077ecf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
go/neo/proto.go
go/neo/proto.go
+4
-1
No files found.
go/neo/proto.go
View file @
9888b7dc
...
...
@@ -135,9 +135,12 @@ type NodeUUID int32
// TODO NodeType -> base NodeUUID
// ErrDecodeOverflow is the error returned by NEOPktDecode when decoding hit buffer overflow
var
ErrDecodeOverflow
=
errors
.
New
(
"decode: bufer overflow"
)
// NEOPkt is the interface implemented by packets to marshal/unmarshal them into/from wire format
// XXX -> will be neo.Pkt after splitting into packages
type
NEOPkt
interface
{
// NEOPktMsgCode returns message code needed to be used for particular packet type
// on the wire
...
...
@@ -150,7 +153,7 @@ type NEOPkt interface {
// len(buf) must be >= NEOPktEncodedLen()
NEOPktEncode
(
buf
[]
byte
)
// NEOPktDecode decodes data into.
// NEOPktDecode decodes data into
current packet state
.
NEOPktDecode
(
data
[]
byte
)
(
nread
int
,
err
error
)
}
...
...
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