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
2e89e301
Commit
2e89e301
authored
Jan 15, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e49e8544
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
go/neo/proto/protogen.go
go/neo/proto/protogen.go
+0
-4
No files found.
go/neo/proto/protogen.go
View file @
2e89e301
...
...
@@ -1310,7 +1310,6 @@ func (d *decoderM) genSlice1(assignto string, typ types.Type) {
d
.
emit
(
" return 0, mdecodeErr(%q, err)"
,
d
.
pathName
(
assignto
))
d
.
emit
(
"}"
)
// XXX dup wrt decoderN ?
switch
t
:=
typ
.
(
type
)
{
case
*
types
.
Basic
:
if
t
.
Kind
()
!=
types
.
String
{
...
...
@@ -1366,7 +1365,6 @@ func (d *decoderN) genBuf(assignto string) {
}
func
(
d
*
decoderM
)
genBuf
(
assignto
string
)
{
// XXX dup wrt decoderM.genSlice1 ?
// -> msgp: flush queued overflow checks; put place for next overflow
// checks after msgp is done.
d
.
overflowCheck
()
...
...
@@ -1379,8 +1377,6 @@ func (d *decoderM) genBuf(assignto string) {
d
.
emit
(
" return 0, mdecodeErr(%q, err)"
,
d
.
pathName
(
assignto
))
d
.
emit
(
"}"
)
// XXX dup wrt decoderN.genBuf ?
// TODO eventually do not copy but reference original
d
.
emit
(
"%v= mem.BufAlloc(len(b))"
,
assignto
)
d
.
emit
(
"copy(%v.Data, b)"
,
assignto
)
...
...
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