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
939f9dfe
Commit
939f9dfe
authored
May 06, 2024
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go/proto/msgpack: Simplify debugging by printing function name in case of overflow
parent
00755bd9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
180 additions
and
173 deletions
+180
-173
go/neo/proto/msgpack.go
go/neo/proto/msgpack.go
+1
-1
go/neo/proto/proto-misc.go
go/neo/proto/proto-misc.go
+9
-0
go/neo/proto/proto.go
go/neo/proto/proto.go
+0
-4
go/neo/proto/proto_test.go
go/neo/proto/proto_test.go
+4
-2
go/neo/proto/protogen.go
go/neo/proto/protogen.go
+1
-1
go/neo/proto/zproto-marshal.go
go/neo/proto/zproto-marshal.go
+165
-165
No files found.
go/neo/proto/msgpack.go
View file @
939f9dfe
...
...
@@ -44,7 +44,7 @@ func (e *mstructDecodeError) Error() string {
// mdecodeErr is called to normilize error when msgp.ReadXXX returns err when decoding path.
func
mdecodeErr
(
path
string
,
err
error
)
error
{
if
err
==
msgp
.
ErrShortBytes
{
return
ErrDecodeOverflow
return
&
ErrDecodeOverflow
{
path
}
}
return
&
mdecodeError
{
path
,
err
}
}
...
...
go/neo/proto/proto-misc.go
View file @
939f9dfe
...
...
@@ -228,3 +228,12 @@ func (addr Address) String() string {
return
net
.
JoinHostPort
(
addr
.
Host
,
fmt
.
Sprintf
(
"%d"
,
addr
.
Port
))
}
}
// ErrDecodeOverflow is the error returned by neoMsgDecode when decoding hits buffer overflow
type
ErrDecodeOverflow
struct
{
function
string
}
func
(
e
*
ErrDecodeOverflow
)
Error
()
string
{
return
fmt
.
Sprintf
(
"decode '%s': buffer overflow"
,
e
.
function
)
}
go/neo/proto/proto.go
View file @
939f9dfe
...
...
@@ -70,7 +70,6 @@ import (
"lab.nexedi.com/kirr/neo/go/internal/packed"
"encoding/binary"
"errors"
"math"
)
...
...
@@ -168,9 +167,6 @@ func (e Encoding) MsgDecode(msg Msg, data []byte) (nread int, err error) {
}
// ErrDecodeOverflow is the error returned by neoMsgDecode when decoding hits buffer overflow
var
ErrDecodeOverflow
=
errors
.
New
(
"decode: buffer overflow"
)
// ---- messages ----
//neo:proto enum
...
...
go/neo/proto/proto_test.go
View file @
939f9dfe
...
...
@@ -22,6 +22,7 @@ package proto
import
(
"encoding/binary"
"errors"
hexpkg
"encoding/hex"
"fmt"
"reflect"
...
...
@@ -430,9 +431,10 @@ func TestMsgDecodeLenOverflowN(t *testing.T) {
}()
n
,
err
:=
enc
.
MsgDecode
(
tt
.
msg
,
data
)
if
!
(
n
==
0
&&
err
==
ErrDecodeOverflow
)
{
errDecodeOverflow
:=
new
(
ErrDecodeOverflow
)
if
!
(
n
==
0
&&
errors
.
As
(
err
,
&
errDecodeOverflow
))
{
t
.
Errorf
(
"%T: decode %x
\n
have: %d, %v
\n
want: %d, %v"
,
tt
.
msg
,
data
,
n
,
err
,
0
,
E
rrDecodeOverflow
)
n
,
err
,
0
,
e
rrDecodeOverflow
)
}
}()
}
...
...
go/neo/proto/protogen.go
View file @
939f9dfe
...
...
@@ -917,7 +917,7 @@ func (d *decoderCommon) generatedCode() string {
// NOTE for >0 check actual X in StdSizes{X} does not particularly matter
if
((
&
types
.
StdSizes
{
8
,
8
})
.
Sizeof
(
d
.
typ
)
>
0
||
d
.
enc
!=
'N'
)
&&
d
.
overflow
.
gotoEmitted
{
code
.
emit
(
"
\n
overflow:"
)
code
.
emit
(
"return 0,
ErrDecodeOverflow"
)
code
.
emit
(
"return 0,
&ErrDecodeOverflow{
\"
%s
\"
}"
,
d
.
typeName
)
}
code
.
emit
(
"}
\n
"
)
...
...
go/neo/proto/zproto-marshal.go
View file @
939f9dfe
...
...
@@ -59,7 +59,7 @@ func (p *Error) neoMsgDecodeN(data []byte) (int, error) {
return
8
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"Error"
}
}
func
(
p
*
Error
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -122,7 +122,7 @@ func (p *Error) neoMsgDecodeM(data []byte) (int, error) {
return
3
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"Error"
}
}
// 1. RequestIdentification
...
...
@@ -267,7 +267,7 @@ func (p *RequestIdentification) neoMsgDecodeN(data []byte) (int, error) {
return
17
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"RequestIdentification"
}
}
func
(
p
*
RequestIdentification
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -474,7 +474,7 @@ func (p *RequestIdentification) neoMsgDecodeM(data []byte) (int, error) {
return
3
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"RequestIdentification"
}
}
// 1 | answerBit. AcceptIdentification
...
...
@@ -503,7 +503,7 @@ func (p *AcceptIdentification) neoMsgDecodeN(data []byte) (int, error) {
return
9
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AcceptIdentification"
}
}
func
(
p
*
AcceptIdentification
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -576,7 +576,7 @@ func (p *AcceptIdentification) neoMsgDecodeM(data []byte) (int, error) {
return
3
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AcceptIdentification"
}
}
// 3. Ping
...
...
@@ -753,7 +753,7 @@ func (p *AnswerPrimary) neoMsgDecodeN(data []byte) (int, error) {
return
4
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerPrimary"
}
}
func
(
p
*
AnswerPrimary
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -846,7 +846,7 @@ func (p *NotPrimaryMaster) neoMsgDecodeN(data []byte) (int, error) {
return
8
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotPrimaryMaster"
}
}
func
(
p
*
NotPrimaryMaster
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -1048,7 +1048,7 @@ func (p *NotifyNodeInformation) neoMsgDecodeN(data []byte) (int, error) {
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotifyNodeInformation"
}
}
func
(
p
*
NotifyNodeInformation
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -1235,7 +1235,7 @@ func (p *NotifyNodeInformation) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotifyNodeInformation"
}
}
// 10. Recovery
...
...
@@ -1302,7 +1302,7 @@ func (p *AnswerRecovery) neoMsgDecodeN(data []byte) (int, error) {
return
24
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerRecovery"
}
}
func
(
p
*
AnswerRecovery
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -1402,7 +1402,7 @@ func (p *AnswerRecovery) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerRecovery"
}
}
// 12. LastIDs
...
...
@@ -1467,7 +1467,7 @@ func (p *AnswerLastIDs) neoMsgDecodeN(data []byte) (int, error) {
return
16
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerLastIDs"
}
}
func
(
p
*
AnswerLastIDs
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -1554,7 +1554,7 @@ func (p *AnswerLastIDs) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerLastIDs"
}
}
// 14. AskPartitionTable
...
...
@@ -1671,7 +1671,7 @@ func (p *AnswerPartitionTable) neoMsgDecodeN(data []byte) (int, error) {
return
16
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerPartitionTable"
}
}
func
(
p
*
AnswerPartitionTable
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -1817,7 +1817,7 @@ func (p *AnswerPartitionTable) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerPartitionTable"
}
}
// 16. SendPartitionTable
...
...
@@ -1896,7 +1896,7 @@ func (p *SendPartitionTable) neoMsgDecodeN(data []byte) (int, error) {
return
16
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"SendPartitionTable"
}
}
func
(
p
*
SendPartitionTable
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -2042,7 +2042,7 @@ func (p *SendPartitionTable) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"SendPartitionTable"
}
}
// 17. NotifyPartitionChanges
...
...
@@ -2101,7 +2101,7 @@ func (p *NotifyPartitionChanges) neoMsgDecodeN(data []byte) (int, error) {
return
16
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotifyPartitionChanges"
}
}
func
(
p
*
NotifyPartitionChanges
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -2248,7 +2248,7 @@ func (p *NotifyPartitionChanges) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotifyPartitionChanges"
}
}
// 18. StartOperation
...
...
@@ -2273,7 +2273,7 @@ func (p *StartOperation) neoMsgDecodeN(data []byte) (int, error) {
return
1
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"StartOperation"
}
}
func
(
p
*
StartOperation
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -2309,7 +2309,7 @@ func (p *StartOperation) neoMsgDecodeM(data []byte) (int, error) {
return
1
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"StartOperation"
}
}
// 19. StopOperation
...
...
@@ -2395,7 +2395,7 @@ func (p *UnfinishedTransactions) neoMsgDecodeN(data []byte) (int, error) {
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"UnfinishedTransactions"
}
}
func
(
p
*
UnfinishedTransactions
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -2513,7 +2513,7 @@ func (p *AnswerUnfinishedTransactions) neoMsgDecodeN(data []byte) (int, error) {
return
12
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerUnfinishedTransactions"
}
}
func
(
p
*
AnswerUnfinishedTransactions
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -2633,7 +2633,7 @@ func (p *AnswerUnfinishedTransactions) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerUnfinishedTransactions"
}
}
// 22. LockedTransactions
...
...
@@ -2726,7 +2726,7 @@ func (p *AnswerLockedTransactions) neoMsgDecodeN(data []byte) (int, error) {
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerLockedTransactions"
}
}
func
(
p
*
AnswerLockedTransactions
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -2823,7 +2823,7 @@ func (p *AnswerLockedTransactions) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerLockedTransactions"
}
}
// 24. FinalTID
...
...
@@ -2848,7 +2848,7 @@ func (p *FinalTID) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"FinalTID"
}
}
func
(
p
*
FinalTID
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -2904,7 +2904,7 @@ func (p *FinalTID) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"FinalTID"
}
}
// 24 | answerBit. AnswerFinalTID
...
...
@@ -2929,7 +2929,7 @@ func (p *AnswerFinalTID) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerFinalTID"
}
}
func
(
p
*
AnswerFinalTID
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -2985,7 +2985,7 @@ func (p *AnswerFinalTID) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerFinalTID"
}
}
// 26. ValidateTransaction
...
...
@@ -3012,7 +3012,7 @@ func (p *ValidateTransaction) neoMsgDecodeN(data []byte) (int, error) {
return
16
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"ValidateTransaction"
}
}
func
(
p
*
ValidateTransaction
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -3099,7 +3099,7 @@ func (p *ValidateTransaction) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"ValidateTransaction"
}
}
// 27. BeginTransaction
...
...
@@ -3124,7 +3124,7 @@ func (p *BeginTransaction) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"BeginTransaction"
}
}
func
(
p
*
BeginTransaction
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -3180,7 +3180,7 @@ func (p *BeginTransaction) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"BeginTransaction"
}
}
// 27 | answerBit. AnswerBeginTransaction
...
...
@@ -3205,7 +3205,7 @@ func (p *AnswerBeginTransaction) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerBeginTransaction"
}
}
func
(
p
*
AnswerBeginTransaction
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -3261,7 +3261,7 @@ func (p *AnswerBeginTransaction) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerBeginTransaction"
}
}
// 29. FailedVote
...
...
@@ -3311,7 +3311,7 @@ func (p *FailedVote) neoMsgDecodeN(data []byte) (int, error) {
return
12
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"FailedVote"
}
}
func
(
p
*
FailedVote
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -3404,7 +3404,7 @@ func (p *FailedVote) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"FailedVote"
}
}
// 30. FinishTransaction
...
...
@@ -3478,7 +3478,7 @@ func (p *FinishTransaction) neoMsgDecodeN(data []byte) (int, error) {
return
12
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"FinishTransaction"
}
}
func
(
p
*
FinishTransaction
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -3626,7 +3626,7 @@ func (p *FinishTransaction) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"FinishTransaction"
}
}
// 30 | answerBit. AnswerTransactionFinished
...
...
@@ -3653,7 +3653,7 @@ func (p *AnswerTransactionFinished) neoMsgDecodeN(data []byte) (int, error) {
return
16
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerTransactionFinished"
}
}
func
(
p
*
AnswerTransactionFinished
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -3740,7 +3740,7 @@ func (p *AnswerTransactionFinished) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerTransactionFinished"
}
}
// 32. LockInformation
...
...
@@ -3767,7 +3767,7 @@ func (p *LockInformation) neoMsgDecodeN(data []byte) (int, error) {
return
16
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"LockInformation"
}
}
func
(
p
*
LockInformation
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -3854,7 +3854,7 @@ func (p *LockInformation) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"LockInformation"
}
}
// 32 | answerBit. AnswerInformationLocked
...
...
@@ -3879,7 +3879,7 @@ func (p *AnswerInformationLocked) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerInformationLocked"
}
}
func
(
p
*
AnswerInformationLocked
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -3935,7 +3935,7 @@ func (p *AnswerInformationLocked) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerInformationLocked"
}
}
// 34. InvalidateObjects
...
...
@@ -3985,7 +3985,7 @@ func (p *InvalidateObjects) neoMsgDecodeN(data []byte) (int, error) {
return
12
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"InvalidateObjects"
}
}
func
(
p
*
InvalidateObjects
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -4087,7 +4087,7 @@ func (p *InvalidateObjects) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"InvalidateObjects"
}
}
// 35. NotifyUnlockInformation
...
...
@@ -4112,7 +4112,7 @@ func (p *NotifyUnlockInformation) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotifyUnlockInformation"
}
}
func
(
p
*
NotifyUnlockInformation
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -4168,7 +4168,7 @@ func (p *NotifyUnlockInformation) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotifyUnlockInformation"
}
}
// 36. AskNewOIDs
...
...
@@ -4193,7 +4193,7 @@ func (p *AskNewOIDs) neoMsgDecodeN(data []byte) (int, error) {
return
4
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AskNewOIDs"
}
}
func
(
p
*
AskNewOIDs
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -4275,7 +4275,7 @@ func (p *AnswerNewOIDs) neoMsgDecodeN(data []byte) (int, error) {
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerNewOIDs"
}
}
func
(
p
*
AnswerNewOIDs
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -4345,7 +4345,7 @@ func (p *AnswerNewOIDs) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerNewOIDs"
}
}
// 38. NotifyDeadlock
...
...
@@ -4372,7 +4372,7 @@ func (p *NotifyDeadlock) neoMsgDecodeN(data []byte) (int, error) {
return
16
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotifyDeadlock"
}
}
func
(
p
*
NotifyDeadlock
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -4459,7 +4459,7 @@ func (p *NotifyDeadlock) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotifyDeadlock"
}
}
// 39. RebaseTransaction
...
...
@@ -4486,7 +4486,7 @@ func (p *RebaseTransaction) neoMsgDecodeN(data []byte) (int, error) {
return
16
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"RebaseTransaction"
}
}
func
(
p
*
RebaseTransaction
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -4573,7 +4573,7 @@ func (p *RebaseTransaction) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"RebaseTransaction"
}
}
// 39 | answerBit. AnswerRebaseTransaction
...
...
@@ -4621,7 +4621,7 @@ func (p *AnswerRebaseTransaction) neoMsgDecodeN(data []byte) (int, error) {
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerRebaseTransaction"
}
}
func
(
p
*
AnswerRebaseTransaction
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -4691,7 +4691,7 @@ func (p *AnswerRebaseTransaction) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerRebaseTransaction"
}
}
// 41. RebaseObject
...
...
@@ -4718,7 +4718,7 @@ func (p *RebaseObject) neoMsgDecodeN(data []byte) (int, error) {
return
16
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"RebaseObject"
}
}
func
(
p
*
RebaseObject
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -4805,7 +4805,7 @@ func (p *RebaseObject) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"RebaseObject"
}
}
// 41 | answerBit. AnswerRebaseObject
...
...
@@ -4855,7 +4855,7 @@ func (p *AnswerRebaseObject) neoMsgDecodeN(data []byte) (int, error) {
return
48
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerRebaseObject"
}
}
func
(
p
*
AnswerRebaseObject
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -4990,7 +4990,7 @@ func (p *AnswerRebaseObject) neoMsgDecodeM(data []byte) (int, error) {
return
22
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerRebaseObject"
}
}
// 43. StoreObject
...
...
@@ -5044,7 +5044,7 @@ func (p *StoreObject) neoMsgDecodeN(data []byte) (int, error) {
return
48
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"StoreObject"
}
}
func
(
p
*
StoreObject
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -5241,7 +5241,7 @@ func (p *StoreObject) neoMsgDecodeM(data []byte) (int, error) {
return
22
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"StoreObject"
}
}
// 43 | answerBit. AnswerStoreObject
...
...
@@ -5266,7 +5266,7 @@ func (p *AnswerStoreObject) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerStoreObject"
}
}
func
(
p
*
AnswerStoreObject
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -5322,7 +5322,7 @@ func (p *AnswerStoreObject) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerStoreObject"
}
}
// 45. AbortTransaction
...
...
@@ -5372,7 +5372,7 @@ func (p *AbortTransaction) neoMsgDecodeN(data []byte) (int, error) {
return
12
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AbortTransaction"
}
}
func
(
p
*
AbortTransaction
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -5465,7 +5465,7 @@ func (p *AbortTransaction) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AbortTransaction"
}
}
// 46. StoreTransaction
...
...
@@ -5566,7 +5566,7 @@ func (p *StoreTransaction) neoMsgDecodeN(data []byte) (int, error) {
return
12
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"StoreTransaction"
}
}
func
(
p
*
StoreTransaction
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -5716,7 +5716,7 @@ func (p *StoreTransaction) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"StoreTransaction"
}
}
// 46 | answerBit. AnswerStoreTransaction
...
...
@@ -5779,7 +5779,7 @@ func (p *VoteTransaction) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"VoteTransaction"
}
}
func
(
p
*
VoteTransaction
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -5835,7 +5835,7 @@ func (p *VoteTransaction) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"VoteTransaction"
}
}
// 48 | answerBit. AnswerVoteTransaction
...
...
@@ -5902,7 +5902,7 @@ func (p *GetObject) neoMsgDecodeN(data []byte) (int, error) {
return
24
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"GetObject"
}
}
func
(
p
*
GetObject
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -6020,7 +6020,7 @@ func (p *GetObject) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"GetObject"
}
}
// 50 | answerBit. AnswerObject
...
...
@@ -6074,7 +6074,7 @@ func (p *AnswerObject) neoMsgDecodeN(data []byte) (int, error) {
return
56
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerObject"
}
}
func
(
p
*
AnswerObject
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -6271,7 +6271,7 @@ func (p *AnswerObject) neoMsgDecodeM(data []byte) (int, error) {
return
22
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerObject"
}
}
// 52. AskTIDs
...
...
@@ -6300,7 +6300,7 @@ func (p *AskTIDs) neoMsgDecodeN(data []byte) (int, error) {
return
20
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AskTIDs"
}
}
func
(
p
*
AskTIDs
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -6408,7 +6408,7 @@ func (p *AnswerTIDs) neoMsgDecodeN(data []byte) (int, error) {
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerTIDs"
}
}
func
(
p
*
AnswerTIDs
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -6478,7 +6478,7 @@ func (p *AnswerTIDs) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerTIDs"
}
}
// 54. TransactionInformation
...
...
@@ -6503,7 +6503,7 @@ func (p *TransactionInformation) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"TransactionInformation"
}
}
func
(
p
*
TransactionInformation
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -6559,7 +6559,7 @@ func (p *TransactionInformation) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"TransactionInformation"
}
}
// 54 | answerBit. AnswerTransactionInformation
...
...
@@ -6662,7 +6662,7 @@ func (p *AnswerTransactionInformation) neoMsgDecodeN(data []byte) (int, error) {
return
12
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerTransactionInformation"
}
}
func
(
p
*
AnswerTransactionInformation
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -6825,7 +6825,7 @@ func (p *AnswerTransactionInformation) neoMsgDecodeM(data []byte) (int, error) {
return
1
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerTransactionInformation"
}
}
// 56. ObjectHistory
...
...
@@ -6854,7 +6854,7 @@ func (p *ObjectHistory) neoMsgDecodeN(data []byte) (int, error) {
return
24
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"ObjectHistory"
}
}
func
(
p
*
ObjectHistory
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -6936,7 +6936,7 @@ func (p *ObjectHistory) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"ObjectHistory"
}
}
// 56 | answerBit. AnswerObjectHistory
...
...
@@ -6991,7 +6991,7 @@ func (p *AnswerObjectHistory) neoMsgDecodeN(data []byte) (int, error) {
return
12
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerObjectHistory"
}
}
func
(
p
*
AnswerObjectHistory
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -7127,7 +7127,7 @@ func (p *AnswerObjectHistory) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerObjectHistory"
}
}
// 58. PartitionList
...
...
@@ -7156,7 +7156,7 @@ func (p *PartitionList) neoMsgDecodeN(data []byte) (int, error) {
return
12
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"PartitionList"
}
}
func
(
p
*
PartitionList
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -7295,7 +7295,7 @@ func (p *AnswerPartitionList) neoMsgDecodeN(data []byte) (int, error) {
return
16
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerPartitionList"
}
}
func
(
p
*
AnswerPartitionList
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -7441,7 +7441,7 @@ func (p *AnswerPartitionList) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerPartitionList"
}
}
// 60. NodeList
...
...
@@ -7466,7 +7466,7 @@ func (p *NodeList) neoMsgDecodeN(data []byte) (int, error) {
return
1
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NodeList"
}
}
func
(
p
*
NodeList
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -7512,7 +7512,7 @@ func (p *NodeList) neoMsgDecodeM(data []byte) (int, error) {
return
3
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NodeList"
}
}
// 60 | answerBit. AnswerNodeList
...
...
@@ -7596,7 +7596,7 @@ func (p *AnswerNodeList) neoMsgDecodeN(data []byte) (int, error) {
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerNodeList"
}
}
func
(
p
*
AnswerNodeList
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -7768,7 +7768,7 @@ func (p *AnswerNodeList) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerNodeList"
}
}
// 62. SetNodeState
...
...
@@ -7795,7 +7795,7 @@ func (p *SetNodeState) neoMsgDecodeN(data []byte) (int, error) {
return
5
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"SetNodeState"
}
}
func
(
p
*
SetNodeState
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -7854,7 +7854,7 @@ func (p *SetNodeState) neoMsgDecodeM(data []byte) (int, error) {
return
3
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"SetNodeState"
}
}
// 63. AddPendingNodes
...
...
@@ -7902,7 +7902,7 @@ func (p *AddPendingNodes) neoMsgDecodeN(data []byte) (int, error) {
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AddPendingNodes"
}
}
func
(
p
*
AddPendingNodes
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -8011,7 +8011,7 @@ func (p *TweakPartitionTable) neoMsgDecodeN(data []byte) (int, error) {
return
5
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"TweakPartitionTable"
}
}
func
(
p
*
TweakPartitionTable
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -8086,7 +8086,7 @@ func (p *TweakPartitionTable) neoMsgDecodeM(data []byte) (int, error) {
return
1
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"TweakPartitionTable"
}
}
// 64 | answerBit. AnswerTweakPartitionTable
...
...
@@ -8163,7 +8163,7 @@ func (p *AnswerTweakPartitionTable) neoMsgDecodeN(data []byte) (int, error) {
return
5
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerTweakPartitionTable"
}
}
func
(
p
*
AnswerTweakPartitionTable
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -8296,7 +8296,7 @@ func (p *AnswerTweakPartitionTable) neoMsgDecodeM(data []byte) (int, error) {
return
1
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerTweakPartitionTable"
}
}
// 66. SetNumReplicas
...
...
@@ -8321,7 +8321,7 @@ func (p *SetNumReplicas) neoMsgDecodeN(data []byte) (int, error) {
return
4
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"SetNumReplicas"
}
}
func
(
p
*
SetNumReplicas
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -8380,7 +8380,7 @@ func (p *SetClusterState) neoMsgDecodeN(data []byte) (int, error) {
return
1
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"SetClusterState"
}
}
func
(
p
*
SetClusterState
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -8426,7 +8426,7 @@ func (p *SetClusterState) neoMsgDecodeM(data []byte) (int, error) {
return
3
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"SetClusterState"
}
}
// 68. Repair
...
...
@@ -8476,7 +8476,7 @@ func (p *Repair) neoMsgDecodeN(data []byte) (int, error) {
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"Repair"
}
}
func
(
p
*
Repair
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -8559,7 +8559,7 @@ func (p *Repair) neoMsgDecodeM(data []byte) (int, error) {
return
1
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"Repair"
}
}
// 69. RepairOne
...
...
@@ -8584,7 +8584,7 @@ func (p *RepairOne) neoMsgDecodeN(data []byte) (int, error) {
return
1
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"RepairOne"
}
}
func
(
p
*
RepairOne
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -8629,7 +8629,7 @@ func (p *RepairOne) neoMsgDecodeM(data []byte) (int, error) {
return
1
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"RepairOne"
}
}
// 70. NotifyClusterState
...
...
@@ -8654,7 +8654,7 @@ func (p *NotifyClusterState) neoMsgDecodeN(data []byte) (int, error) {
return
1
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotifyClusterState"
}
}
func
(
p
*
NotifyClusterState
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -8700,7 +8700,7 @@ func (p *NotifyClusterState) neoMsgDecodeM(data []byte) (int, error) {
return
3
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotifyClusterState"
}
}
// 71. AskClusterState
...
...
@@ -8763,7 +8763,7 @@ func (p *AnswerClusterState) neoMsgDecodeN(data []byte) (int, error) {
return
1
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerClusterState"
}
}
func
(
p
*
AnswerClusterState
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -8809,7 +8809,7 @@ func (p *AnswerClusterState) neoMsgDecodeM(data []byte) (int, error) {
return
3
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerClusterState"
}
}
// 73. ObjectUndoSerial
...
...
@@ -8863,7 +8863,7 @@ func (p *ObjectUndoSerial) neoMsgDecodeN(data []byte) (int, error) {
return
28
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"ObjectUndoSerial"
}
}
func
(
p
*
ObjectUndoSerial
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -9027,7 +9027,7 @@ func (p *ObjectUndoSerial) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"ObjectUndoSerial"
}
}
// 73 | answerBit. AnswerObjectUndoSerial
...
...
@@ -9096,7 +9096,7 @@ func (p *AnswerObjectUndoSerial) neoMsgDecodeN(data []byte) (int, error) {
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerObjectUndoSerial"
}
}
func
(
p
*
AnswerObjectUndoSerial
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -9276,7 +9276,7 @@ func (p *AnswerObjectUndoSerial) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerObjectUndoSerial"
}
}
// 75. AskTIDsFrom
...
...
@@ -9307,7 +9307,7 @@ func (p *AskTIDsFrom) neoMsgDecodeN(data []byte) (int, error) {
return
24
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AskTIDsFrom"
}
}
func
(
p
*
AskTIDsFrom
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -9420,7 +9420,7 @@ func (p *AskTIDsFrom) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AskTIDsFrom"
}
}
// 75 | answerBit. AnswerTIDsFrom
...
...
@@ -9468,7 +9468,7 @@ func (p *AnswerTIDsFrom) neoMsgDecodeN(data []byte) (int, error) {
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerTIDsFrom"
}
}
func
(
p
*
AnswerTIDsFrom
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -9538,7 +9538,7 @@ func (p *AnswerTIDsFrom) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerTIDsFrom"
}
}
// 77. Pack
...
...
@@ -9563,7 +9563,7 @@ func (p *Pack) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"Pack"
}
}
func
(
p
*
Pack
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -9619,7 +9619,7 @@ func (p *Pack) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"Pack"
}
}
// 77 | answerBit. AnswerPack
...
...
@@ -9644,7 +9644,7 @@ func (p *AnswerPack) neoMsgDecodeN(data []byte) (int, error) {
return
1
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerPack"
}
}
func
(
p
*
AnswerPack
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -9680,7 +9680,7 @@ func (p *AnswerPack) neoMsgDecodeM(data []byte) (int, error) {
return
1
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerPack"
}
}
// 79. CheckReplicas
...
...
@@ -9739,7 +9739,7 @@ func (p *CheckReplicas) neoMsgDecodeN(data []byte) (int, error) {
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"CheckReplicas"
}
}
func
(
p
*
CheckReplicas
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -9880,7 +9880,7 @@ func (p *CheckReplicas) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"CheckReplicas"
}
}
// 80. CheckPartition
...
...
@@ -9942,7 +9942,7 @@ func (p *CheckPartition) neoMsgDecodeN(data []byte) (int, error) {
return
24
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"CheckPartition"
}
}
func
(
p
*
CheckPartition
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -10105,7 +10105,7 @@ func (p *CheckPartition) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"CheckPartition"
}
}
// 81. CheckTIDRange
...
...
@@ -10136,7 +10136,7 @@ func (p *CheckTIDRange) neoMsgDecodeN(data []byte) (int, error) {
return
24
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"CheckTIDRange"
}
}
func
(
p
*
CheckTIDRange
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -10249,7 +10249,7 @@ func (p *CheckTIDRange) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"CheckTIDRange"
}
}
// 81 | answerBit. AnswerCheckTIDRange
...
...
@@ -10278,7 +10278,7 @@ func (p *AnswerCheckTIDRange) neoMsgDecodeN(data []byte) (int, error) {
return
32
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerCheckTIDRange"
}
}
func
(
p
*
AnswerCheckTIDRange
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -10361,7 +10361,7 @@ func (p *AnswerCheckTIDRange) neoMsgDecodeM(data []byte) (int, error) {
return
22
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerCheckTIDRange"
}
}
// 83. CheckSerialRange
...
...
@@ -10394,7 +10394,7 @@ func (p *CheckSerialRange) neoMsgDecodeN(data []byte) (int, error) {
return
32
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"CheckSerialRange"
}
}
func
(
p
*
CheckSerialRange
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -10538,7 +10538,7 @@ func (p *CheckSerialRange) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"CheckSerialRange"
}
}
// 83 | answerBit. AnswerCheckSerialRange
...
...
@@ -10571,7 +10571,7 @@ func (p *AnswerCheckSerialRange) neoMsgDecodeN(data []byte) (int, error) {
return
60
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerCheckSerialRange"
}
}
func
(
p
*
AnswerCheckSerialRange
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -10699,7 +10699,7 @@ func (p *AnswerCheckSerialRange) neoMsgDecodeM(data []byte) (int, error) {
return
44
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerCheckSerialRange"
}
}
// 85. PartitionCorrupted
...
...
@@ -10749,7 +10749,7 @@ func (p *PartitionCorrupted) neoMsgDecodeN(data []byte) (int, error) {
return
8
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"PartitionCorrupted"
}
}
func
(
p
*
PartitionCorrupted
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -10922,7 +10922,7 @@ func (p *AnswerLastTransaction) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerLastTransaction"
}
}
func
(
p
*
AnswerLastTransaction
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -10978,7 +10978,7 @@ func (p *AnswerLastTransaction) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerLastTransaction"
}
}
// 89. CheckCurrentSerial
...
...
@@ -11007,7 +11007,7 @@ func (p *CheckCurrentSerial) neoMsgDecodeN(data []byte) (int, error) {
return
24
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"CheckCurrentSerial"
}
}
func
(
p
*
CheckCurrentSerial
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -11125,7 +11125,7 @@ func (p *CheckCurrentSerial) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"CheckCurrentSerial"
}
}
// 89 | answerBit. AnswerCheckCurrentSerial
...
...
@@ -11150,7 +11150,7 @@ func (p *AnswerCheckCurrentSerial) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerCheckCurrentSerial"
}
}
func
(
p
*
AnswerCheckCurrentSerial
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -11215,7 +11215,7 @@ func (p *AnswerCheckCurrentSerial) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerCheckCurrentSerial"
}
}
// 91. NotifyTransactionFinished
...
...
@@ -11242,7 +11242,7 @@ func (p *NotifyTransactionFinished) neoMsgDecodeN(data []byte) (int, error) {
return
16
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotifyTransactionFinished"
}
}
func
(
p
*
NotifyTransactionFinished
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -11329,7 +11329,7 @@ func (p *NotifyTransactionFinished) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"NotifyTransactionFinished"
}
}
// 92. Replicate
...
...
@@ -11420,7 +11420,7 @@ func (p *Replicate) neoMsgDecodeN(data []byte) (int, error) {
return
12
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"Replicate"
}
}
func
(
p
*
Replicate
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -11549,7 +11549,7 @@ func (p *Replicate) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"Replicate"
}
}
// 93. ReplicationDone
...
...
@@ -11576,7 +11576,7 @@ func (p *ReplicationDone) neoMsgDecodeN(data []byte) (int, error) {
return
12
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"ReplicationDone"
}
}
func
(
p
*
ReplicationDone
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -11645,7 +11645,7 @@ func (p *ReplicationDone) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"ReplicationDone"
}
}
// 94. FetchTransactions
...
...
@@ -11701,7 +11701,7 @@ func (p *FetchTransactions) neoMsgDecodeN(data []byte) (int, error) {
return
28
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"FetchTransactions"
}
}
func
(
p
*
FetchTransactions
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -11860,7 +11860,7 @@ func (p *FetchTransactions) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"FetchTransactions"
}
}
// 94 | answerBit. AnswerFetchTransactions
...
...
@@ -11912,7 +11912,7 @@ func (p *AnswerFetchTransactions) neoMsgDecodeN(data []byte) (int, error) {
return
20
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerFetchTransactions"
}
}
func
(
p
*
AnswerFetchTransactions
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -12045,7 +12045,7 @@ func (p *AnswerFetchTransactions) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerFetchTransactions"
}
}
// 96. FetchObjects
...
...
@@ -12136,7 +12136,7 @@ func (p *FetchObjects) neoMsgDecodeN(data []byte) (int, error) {
return
36
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"FetchObjects"
}
}
func
(
p
*
FetchObjects
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -12387,7 +12387,7 @@ func (p *FetchObjects) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"FetchObjects"
}
}
// 96 | answerBit. AnswerFetchObjects
...
...
@@ -12474,7 +12474,7 @@ func (p *AnswerFetchObjects) neoMsgDecodeN(data []byte) (int, error) {
return
28
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerFetchObjects"
}
}
func
(
p
*
AnswerFetchObjects
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -12699,7 +12699,7 @@ func (p *AnswerFetchObjects) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AnswerFetchObjects"
}
}
// 98. AddTransaction
...
...
@@ -12804,7 +12804,7 @@ func (p *AddTransaction) neoMsgDecodeN(data []byte) (int, error) {
return
12
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AddTransaction"
}
}
func
(
p
*
AddTransaction
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -12998,7 +12998,7 @@ func (p *AddTransaction) neoMsgDecodeM(data []byte) (int, error) {
return
1
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AddTransaction"
}
}
// 99. AddObject
...
...
@@ -13050,7 +13050,7 @@ func (p *AddObject) neoMsgDecodeN(data []byte) (int, error) {
return
48
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AddObject"
}
}
func
(
p
*
AddObject
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -13216,7 +13216,7 @@ func (p *AddObject) neoMsgDecodeM(data []byte) (int, error) {
return
22
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"AddObject"
}
}
// 100. Truncate
...
...
@@ -13241,7 +13241,7 @@ func (p *Truncate) neoMsgDecodeN(data []byte) (int, error) {
return
8
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"Truncate"
}
}
func
(
p
*
Truncate
)
neoMsgEncodedLenM
()
int
{
...
...
@@ -13297,7 +13297,7 @@ func (p *Truncate) neoMsgDecodeM(data []byte) (int, error) {
return
0
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
return
0
,
&
ErrDecodeOverflow
{
"Truncate"
}
}
// 101. FlushLog
...
...
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