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
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
4f871a72
Commit
4f871a72
authored
Jan 12, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bebc5e77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
go/neo/neonet/pkt.go
go/neo/neonet/pkt.go
+0
-2
No files found.
go/neo/neonet/pkt.go
View file @
4f871a72
...
@@ -39,7 +39,6 @@ type pktBuf struct {
...
@@ -39,7 +39,6 @@ type pktBuf struct {
}
}
// HeaderN returns pointer to packet header in 'N'-encoding.
// HeaderN returns pointer to packet header in 'N'-encoding.
//func (pkt *pktBuf) Header() *proto.PktHeader { return pkt.HeaderN() } // XXX kill
func
(
pkt
*
pktBuf
)
HeaderN
()
*
proto
.
PktHeader
{
func
(
pkt
*
pktBuf
)
HeaderN
()
*
proto
.
PktHeader
{
// NOTE no need to check len(.data) < PktHeader:
// NOTE no need to check len(.data) < PktHeader:
// .data is always allocated with cap >= PktHeaderLen.
// .data is always allocated with cap >= PktHeaderLen.
...
@@ -47,7 +46,6 @@ func (pkt *pktBuf) HeaderN() *proto.PktHeader {
...
@@ -47,7 +46,6 @@ func (pkt *pktBuf) HeaderN() *proto.PktHeader {
}
}
// PayloadN returns []byte representing packet payload in 'N'-encoding.
// PayloadN returns []byte representing packet payload in 'N'-encoding.
func
(
pkt
*
pktBuf
)
Payload
()
[]
byte
{
return
pkt
.
PayloadN
()
}
// XXX kill
func
(
pkt
*
pktBuf
)
PayloadN
()
[]
byte
{
func
(
pkt
*
pktBuf
)
PayloadN
()
[]
byte
{
return
pkt
.
data
[
proto
.
PktHeaderLen
:
]
return
pkt
.
data
[
proto
.
PktHeaderLen
:
]
}
}
...
...
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