Commit d576837e authored by Levin Zimmermann's avatar Levin Zimmermann

proto: Simplify debugging by printing function name in case of overflow

parent d3cae883
......@@ -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}
}
......
......@@ -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)
}
......@@ -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
......
......@@ -152,7 +152,8 @@ func testMsgMarshal(t *testing.T, enc Encoding, msg Msg, encoded string) {
// decode must detect buffer overflow
for l := len(encoded) - 1; l >= 0; l-- {
n, err = enc.MsgDecode(msg2, data[:l])
if !(n == 0 && err == ErrDecodeOverflow) {
errDecodeOverFlow := new(ErrDecodeOverFlow)
if !(n == 0 && errors.As(err, &errDecodeOverFlow)) {
t.Errorf("%c/%v: decode overflow not detected on [:%v]", enc, typ, l)
}
......
......@@ -911,7 +911,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' {
code.emit("\noverflow:")
code.emit("return 0, ErrDecodeOverflow")
code.emit("return 0, &ErrDecodeOverflow{\"%s\"}", d.typeName)
}
code.emit("}\n")
......
......@@ -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 {
......@@ -119,7 +119,7 @@ func (p *Error) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"Error"}
}
// 1. RequestIdentification
......@@ -264,7 +264,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 {
......@@ -478,7 +478,7 @@ func (p *RequestIdentification) neoMsgDecodeM(data []byte) (int, error) {
return 5 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"RequestIdentification"}
}
// 1 | answerBit. AcceptIdentification
......@@ -507,7 +507,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 {
......@@ -582,7 +582,7 @@ func (p *AcceptIdentification) neoMsgDecodeM(data []byte) (int, error) {
return 4 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AcceptIdentification"}
}
// 3. Ping
......@@ -627,7 +627,7 @@ func (p *Ping) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"Ping"}
}
// 3 | answerBit. Pong
......@@ -672,7 +672,7 @@ func (p *Pong) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"Pong"}
}
// 5. CloseClient
......@@ -717,7 +717,7 @@ func (p *CloseClient) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"CloseClient"}
}
// 6. PrimaryMaster
......@@ -762,7 +762,7 @@ func (p *PrimaryMaster) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"PrimaryMaster"}
}
// 6 | answerBit. AnswerPrimary
......@@ -787,7 +787,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 {
......@@ -829,7 +829,7 @@ func (p *AnswerPrimary) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerPrimary"}
}
// 8. NotPrimaryMaster
......@@ -888,7 +888,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 {
......@@ -1010,7 +1010,7 @@ func (p *NotPrimaryMaster) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"NotPrimaryMaster"}
}
// 9. NotifyNodeInformation
......@@ -1106,7 +1106,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 {
......@@ -1302,7 +1302,7 @@ func (p *NotifyNodeInformation) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"NotifyNodeInformation"}
}
// 10. Recovery
......@@ -1347,7 +1347,7 @@ func (p *Recovery) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"Recovery"}
}
// 10 | answerBit. AnswerRecovery
......@@ -1376,7 +1376,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 {
......@@ -1476,7 +1476,7 @@ func (p *AnswerRecovery) neoMsgDecodeM(data []byte) (int, error) {
return 21 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerRecovery"}
}
// 12. LastIDs
......@@ -1521,7 +1521,7 @@ func (p *LastIDs) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"LastIDs"}
}
// 12 | answerBit. AnswerLastIDs
......@@ -1548,7 +1548,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 {
......@@ -1631,7 +1631,7 @@ func (p *AnswerLastIDs) neoMsgDecodeM(data []byte) (int, error) {
return 21, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerLastIDs"}
}
// 14. AskPartitionTable
......@@ -1676,7 +1676,7 @@ func (p *AskPartitionTable) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AskPartitionTable"}
}
// 14 | answerBit. AnswerPartitionTable
......@@ -1755,7 +1755,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 {
......@@ -1919,7 +1919,7 @@ func (p *AnswerPartitionTable) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerPartitionTable"}
}
// 16. SendPartitionTable
......@@ -1998,7 +1998,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 {
......@@ -2162,7 +2162,7 @@ func (p *SendPartitionTable) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"SendPartitionTable"}
}
// 17. NotifyPartitionChanges
......@@ -2221,7 +2221,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 {
......@@ -2383,7 +2383,7 @@ func (p *NotifyPartitionChanges) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"NotifyPartitionChanges"}
}
// 18. StartOperation
......@@ -2408,7 +2408,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 {
......@@ -2445,7 +2445,7 @@ func (p *StartOperation) neoMsgDecodeM(data []byte) (int, error) {
return 2, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"StartOperation"}
}
// 19. StopOperation
......@@ -2490,7 +2490,7 @@ func (p *StopOperation) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"StopOperation"}
}
// 20. UnfinishedTransactions
......@@ -2538,7 +2538,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 {
......@@ -2620,7 +2620,7 @@ func (p *UnfinishedTransactions) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"UnfinishedTransactions"}
}
// 20 | answerBit. AnswerUnfinishedTransactions
......@@ -2670,7 +2670,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 {
......@@ -2784,7 +2784,7 @@ func (p *AnswerUnfinishedTransactions) neoMsgDecodeM(data []byte) (int, error) {
return 11 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerUnfinishedTransactions"}
}
// 22. LockedTransactions
......@@ -2829,7 +2829,7 @@ func (p *LockedTransactions) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"LockedTransactions"}
}
// 22 | answerBit. AnswerLockedTransactions
......@@ -2884,7 +2884,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 {
......@@ -2986,7 +2986,7 @@ func (p *AnswerLockedTransactions) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerLockedTransactions"}
}
// 24. FinalTID
......@@ -3011,7 +3011,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 {
......@@ -3067,7 +3067,7 @@ func (p *FinalTID) neoMsgDecodeM(data []byte) (int, error) {
return 11, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"FinalTID"}
}
// 24 | answerBit. AnswerFinalTID
......@@ -3092,7 +3092,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 {
......@@ -3148,7 +3148,7 @@ func (p *AnswerFinalTID) neoMsgDecodeM(data []byte) (int, error) {
return 11, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerFinalTID"}
}
// 26. ValidateTransaction
......@@ -3175,7 +3175,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 {
......@@ -3258,7 +3258,7 @@ func (p *ValidateTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 21, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"ValidateTransaction"}
}
// 27. BeginTransaction
......@@ -3283,7 +3283,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 {
......@@ -3339,7 +3339,7 @@ func (p *BeginTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 11, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"BeginTransaction"}
}
// 27 | answerBit. AnswerBeginTransaction
......@@ -3364,7 +3364,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 {
......@@ -3420,7 +3420,7 @@ func (p *AnswerBeginTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 11, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerBeginTransaction"}
}
// 29. FailedVote
......@@ -3470,7 +3470,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 {
......@@ -3564,7 +3564,7 @@ func (p *FailedVote) neoMsgDecodeM(data []byte) (int, error) {
return 11 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"FailedVote"}
}
// 30. FinishTransaction
......@@ -3638,7 +3638,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 {
......@@ -3787,7 +3787,7 @@ func (p *FinishTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 11 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"FinishTransaction"}
}
// 30 | answerBit. AnswerTransactionFinished
......@@ -3814,7 +3814,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 {
......@@ -3897,7 +3897,7 @@ func (p *AnswerTransactionFinished) neoMsgDecodeM(data []byte) (int, error) {
return 21, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerTransactionFinished"}
}
// 32. LockInformation
......@@ -3924,7 +3924,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 {
......@@ -4007,7 +4007,7 @@ func (p *LockInformation) neoMsgDecodeM(data []byte) (int, error) {
return 21, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"LockInformation"}
}
// 32 | answerBit. AnswerInformationLocked
......@@ -4032,7 +4032,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 {
......@@ -4088,7 +4088,7 @@ func (p *AnswerInformationLocked) neoMsgDecodeM(data []byte) (int, error) {
return 11, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerInformationLocked"}
}
// 34. InvalidateObjects
......@@ -4138,7 +4138,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 {
......@@ -4241,7 +4241,7 @@ func (p *InvalidateObjects) neoMsgDecodeM(data []byte) (int, error) {
return 11 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"InvalidateObjects"}
}
// 35. NotifyUnlockInformation
......@@ -4266,7 +4266,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 {
......@@ -4322,7 +4322,7 @@ func (p *NotifyUnlockInformation) neoMsgDecodeM(data []byte) (int, error) {
return 11, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"NotifyUnlockInformation"}
}
// 36. AskNewOIDs
......@@ -4347,7 +4347,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 {
......@@ -4389,7 +4389,7 @@ func (p *AskNewOIDs) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AskNewOIDs"}
}
// 36 | answerBit. AnswerNewOIDs
......@@ -4437,7 +4437,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 {
......@@ -4512,7 +4512,7 @@ func (p *AnswerNewOIDs) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerNewOIDs"}
}
// 38. NotifyDeadlock
......@@ -4539,7 +4539,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 {
......@@ -4622,7 +4622,7 @@ func (p *NotifyDeadlock) neoMsgDecodeM(data []byte) (int, error) {
return 21, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"NotifyDeadlock"}
}
// 39. RebaseTransaction
......@@ -4649,7 +4649,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 {
......@@ -4732,7 +4732,7 @@ func (p *RebaseTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 21, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"RebaseTransaction"}
}
// 39 | answerBit. AnswerRebaseTransaction
......@@ -4780,7 +4780,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 {
......@@ -4855,7 +4855,7 @@ func (p *AnswerRebaseTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerRebaseTransaction"}
}
// 41. RebaseObject
......@@ -4882,7 +4882,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 {
......@@ -4965,7 +4965,7 @@ func (p *RebaseObject) neoMsgDecodeM(data []byte) (int, error) {
return 21, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"RebaseObject"}
}
// 41 | answerBit. AnswerRebaseObject
......@@ -5015,7 +5015,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 {
......@@ -5147,7 +5147,7 @@ func (p *AnswerRebaseObject) neoMsgDecodeM(data []byte) (int, error) {
return 43 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerRebaseObject"}
}
// 43. StoreObject
......@@ -5201,7 +5201,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 {
......@@ -5390,7 +5390,7 @@ func (p *StoreObject) neoMsgDecodeM(data []byte) (int, error) {
return 63 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"StoreObject"}
}
// 43 | answerBit. AnswerStoreObject
......@@ -5415,7 +5415,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 {
......@@ -5471,7 +5471,7 @@ func (p *AnswerStoreObject) neoMsgDecodeM(data []byte) (int, error) {
return 11, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerStoreObject"}
}
// 45. AbortTransaction
......@@ -5521,7 +5521,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 {
......@@ -5615,7 +5615,7 @@ func (p *AbortTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 11 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AbortTransaction"}
}
// 46. StoreTransaction
......@@ -5716,7 +5716,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 {
......@@ -5867,7 +5867,7 @@ func (p *StoreTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 11 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"StoreTransaction"}
}
// 46 | answerBit. AnswerStoreTransaction
......@@ -5912,7 +5912,7 @@ func (p *AnswerStoreTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerStoreTransaction"}
}
// 48. VoteTransaction
......@@ -5937,7 +5937,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 {
......@@ -5993,7 +5993,7 @@ func (p *VoteTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 11, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"VoteTransaction"}
}
// 48 | answerBit. AnswerVoteTransaction
......@@ -6038,7 +6038,7 @@ func (p *AnswerVoteTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerVoteTransaction"}
}
// 50. GetObject
......@@ -6067,7 +6067,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 {
......@@ -6177,7 +6177,7 @@ func (p *GetObject) neoMsgDecodeM(data []byte) (int, error) {
return 31, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"GetObject"}
}
// 50 | answerBit. AnswerObject
......@@ -6231,7 +6231,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 {
......@@ -6420,7 +6420,7 @@ func (p *AnswerObject) neoMsgDecodeM(data []byte) (int, error) {
return 63 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerObject"}
}
// 52. AskTIDs
......@@ -6449,7 +6449,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 {
......@@ -6517,7 +6517,7 @@ func (p *AskTIDs) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AskTIDs"}
}
// 52 | answerBit. AnswerTIDs
......@@ -6565,7 +6565,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 {
......@@ -6640,7 +6640,7 @@ func (p *AnswerTIDs) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerTIDs"}
}
// 54. TransactionInformation
......@@ -6665,7 +6665,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 {
......@@ -6721,7 +6721,7 @@ func (p *TransactionInformation) neoMsgDecodeM(data []byte) (int, error) {
return 11, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"TransactionInformation"}
}
// 54 | answerBit. AnswerTransactionInformation
......@@ -6824,7 +6824,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 {
......@@ -6988,7 +6988,7 @@ func (p *AnswerTransactionInformation) neoMsgDecodeM(data []byte) (int, error) {
return 12 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerTransactionInformation"}
}
// 56. ObjectHistory
......@@ -7017,7 +7017,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 {
......@@ -7100,7 +7100,7 @@ func (p *ObjectHistory) neoMsgDecodeM(data []byte) (int, error) {
return 11 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"ObjectHistory"}
}
// 56 | answerBit. AnswerObjectHistory
......@@ -7155,7 +7155,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 {
......@@ -7294,7 +7294,7 @@ func (p *AnswerObjectHistory) neoMsgDecodeM(data []byte) (int, error) {
return 11 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerObjectHistory"}
}
// 58. PartitionList
......@@ -7323,7 +7323,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 {
......@@ -7391,7 +7391,7 @@ func (p *PartitionList) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"PartitionList"}
}
// 58 | answerBit. AnswerPartitionList
......@@ -7470,7 +7470,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 {
......@@ -7634,7 +7634,7 @@ func (p *AnswerPartitionList) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerPartitionList"}
}
// 60. NodeList
......@@ -7659,7 +7659,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 {
......@@ -7706,7 +7706,7 @@ func (p *NodeList) neoMsgDecodeM(data []byte) (int, error) {
return 4, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"NodeList"}
}
// 60 | answerBit. AnswerNodeList
......@@ -7790,7 +7790,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 {
......@@ -7971,7 +7971,7 @@ func (p *AnswerNodeList) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerNodeList"}
}
// 62. SetNodeState
......@@ -7998,7 +7998,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 {
......@@ -8062,7 +8062,7 @@ func (p *SetNodeState) neoMsgDecodeM(data []byte) (int, error) {
return 4 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"SetNodeState"}
}
// 63. AddPendingNodes
......@@ -8110,7 +8110,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 {
......@@ -8177,7 +8177,7 @@ func (p *AddPendingNodes) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AddPendingNodes"}
}
// 64. TweakPartitionTable
......@@ -8227,7 +8227,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 {
......@@ -8304,7 +8304,7 @@ func (p *TweakPartitionTable) neoMsgDecodeM(data []byte) (int, error) {
return 2 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"TweakPartitionTable"}
}
// 64 | answerBit. AnswerTweakPartitionTable
......@@ -8381,7 +8381,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 {
......@@ -8529,7 +8529,7 @@ func (p *AnswerTweakPartitionTable) neoMsgDecodeM(data []byte) (int, error) {
return 2 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerTweakPartitionTable"}
}
// 66. SetNumReplicas
......@@ -8554,7 +8554,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 {
......@@ -8596,7 +8596,7 @@ func (p *SetNumReplicas) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"SetNumReplicas"}
}
// 67. SetClusterState
......@@ -8621,7 +8621,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 {
......@@ -8668,7 +8668,7 @@ func (p *SetClusterState) neoMsgDecodeM(data []byte) (int, error) {
return 4, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"SetClusterState"}
}
// 68. Repair
......@@ -8718,7 +8718,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 {
......@@ -8808,7 +8808,7 @@ func (p *Repair) neoMsgDecodeM(data []byte) (int, error) {
return 3 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"Repair"}
}
// 69. RepairOne
......@@ -8833,7 +8833,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 {
......@@ -8881,7 +8881,7 @@ func (p *RepairOne) neoMsgDecodeM(data []byte) (int, error) {
return 3, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"RepairOne"}
}
// 70. NotifyClusterState
......@@ -8906,7 +8906,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 {
......@@ -8953,7 +8953,7 @@ func (p *NotifyClusterState) neoMsgDecodeM(data []byte) (int, error) {
return 4, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"NotifyClusterState"}
}
// 71. AskClusterState
......@@ -8998,7 +8998,7 @@ func (p *AskClusterState) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AskClusterState"}
}
// 71 | answerBit. AnswerClusterState
......@@ -9023,7 +9023,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 {
......@@ -9070,7 +9070,7 @@ func (p *AnswerClusterState) neoMsgDecodeM(data []byte) (int, error) {
return 4, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerClusterState"}
}
// 73. ObjectUndoSerial
......@@ -9124,7 +9124,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 {
......@@ -9281,7 +9281,7 @@ func (p *ObjectUndoSerial) neoMsgDecodeM(data []byte) (int, error) {
return 31 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"ObjectUndoSerial"}
}
// 73 | answerBit. AnswerObjectUndoSerial
......@@ -9350,7 +9350,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 {
......@@ -9506,7 +9506,7 @@ func (p *AnswerObjectUndoSerial) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerObjectUndoSerial"}
}
// 75. AskTIDsFrom
......@@ -9537,7 +9537,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 {
......@@ -9647,7 +9647,7 @@ func (p *AskTIDsFrom) neoMsgDecodeM(data []byte) (int, error) {
return 21 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AskTIDsFrom"}
}
// 75 | answerBit. AnswerTIDsFrom
......@@ -9695,7 +9695,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 {
......@@ -9770,7 +9770,7 @@ func (p *AnswerTIDsFrom) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerTIDsFrom"}
}
// 77. Pack
......@@ -9795,7 +9795,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 {
......@@ -9851,7 +9851,7 @@ func (p *Pack) neoMsgDecodeM(data []byte) (int, error) {
return 11, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"Pack"}
}
// 77 | answerBit. AnswerPack
......@@ -9876,7 +9876,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 {
......@@ -9913,7 +9913,7 @@ func (p *AnswerPack) neoMsgDecodeM(data []byte) (int, error) {
return 2, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerPack"}
}
// 79. CheckReplicas
......@@ -9972,7 +9972,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 {
......@@ -10113,7 +10113,7 @@ func (p *CheckReplicas) neoMsgDecodeM(data []byte) (int, error) {
return 21 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"CheckReplicas"}
}
// 80. CheckPartition
......@@ -10175,7 +10175,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 {
......@@ -10348,7 +10348,7 @@ func (p *CheckPartition) neoMsgDecodeM(data []byte) (int, error) {
return 23 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"CheckPartition"}
}
// 81. CheckTIDRange
......@@ -10379,7 +10379,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 {
......@@ -10492,7 +10492,7 @@ func (p *CheckTIDRange) neoMsgDecodeM(data []byte) (int, error) {
return 21 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"CheckTIDRange"}
}
// 81 | answerBit. AnswerCheckTIDRange
......@@ -10521,7 +10521,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 {
......@@ -10604,7 +10604,7 @@ func (p *AnswerCheckTIDRange) neoMsgDecodeM(data []byte) (int, error) {
return 33 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerCheckTIDRange"}
}
// 83. CheckSerialRange
......@@ -10637,7 +10637,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 {
......@@ -10777,7 +10777,7 @@ func (p *CheckSerialRange) neoMsgDecodeM(data []byte) (int, error) {
return 31 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"CheckSerialRange"}
}
// 83 | answerBit. AnswerCheckSerialRange
......@@ -10810,7 +10810,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 {
......@@ -10930,7 +10930,7 @@ func (p *AnswerCheckSerialRange) neoMsgDecodeM(data []byte) (int, error) {
return 65 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerCheckSerialRange"}
}
// 85. PartitionCorrupted
......@@ -10980,7 +10980,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 {
......@@ -11060,7 +11060,7 @@ func (p *PartitionCorrupted) neoMsgDecodeM(data []byte) (int, error) {
return 1 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"PartitionCorrupted"}
}
// 86. NotifyReady
......@@ -11105,7 +11105,7 @@ func (p *NotifyReady) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"NotifyReady"}
}
// 87. LastTransaction
......@@ -11150,7 +11150,7 @@ func (p *LastTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"LastTransaction"}
}
// 87 | answerBit. AnswerLastTransaction
......@@ -11175,7 +11175,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 {
......@@ -11231,7 +11231,7 @@ func (p *AnswerLastTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 11, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerLastTransaction"}
}
// 89. CheckCurrentSerial
......@@ -11260,7 +11260,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 {
......@@ -11370,7 +11370,7 @@ func (p *CheckCurrentSerial) neoMsgDecodeM(data []byte) (int, error) {
return 31, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"CheckCurrentSerial"}
}
// 89 | answerBit. AnswerCheckCurrentSerial
......@@ -11395,7 +11395,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 {
......@@ -11462,7 +11462,7 @@ func (p *AnswerCheckCurrentSerial) neoMsgDecodeM(data []byte) (int, error) {
return 12, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerCheckCurrentSerial"}
}
// 91. NotifyTransactionFinished
......@@ -11489,7 +11489,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 {
......@@ -11572,7 +11572,7 @@ func (p *NotifyTransactionFinished) neoMsgDecodeM(data []byte) (int, error) {
return 21, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"NotifyTransactionFinished"}
}
// 92. Replicate
......@@ -11663,7 +11663,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 {
......@@ -11793,7 +11793,7 @@ func (p *Replicate) neoMsgDecodeM(data []byte) (int, error) {
return 11 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"Replicate"}
}
// 93. ReplicationDone
......@@ -11820,7 +11820,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 {
......@@ -11893,7 +11893,7 @@ func (p *ReplicationDone) neoMsgDecodeM(data []byte) (int, error) {
return 11 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"ReplicationDone"}
}
// 94. FetchTransactions
......@@ -11949,7 +11949,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 {
......@@ -12108,7 +12108,7 @@ func (p *FetchTransactions) neoMsgDecodeM(data []byte) (int, error) {
return 21 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"FetchTransactions"}
}
// 94 | answerBit. AnswerFetchTransactions
......@@ -12160,7 +12160,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 {
......@@ -12290,7 +12290,7 @@ func (p *AnswerFetchTransactions) neoMsgDecodeM(data []byte) (int, error) {
return 21 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerFetchTransactions"}
}
// 96. FetchObjects
......@@ -12381,7 +12381,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 {
......@@ -12628,7 +12628,7 @@ func (p *FetchObjects) neoMsgDecodeM(data []byte) (int, error) {
return 31 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"FetchObjects"}
}
// 96 | answerBit. AnswerFetchObjects
......@@ -12715,7 +12715,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 {
......@@ -12933,7 +12933,7 @@ func (p *AnswerFetchObjects) neoMsgDecodeM(data []byte) (int, error) {
return 31 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AnswerFetchObjects"}
}
// 98. AddTransaction
......@@ -13038,7 +13038,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 {
......@@ -13228,7 +13228,7 @@ func (p *AddTransaction) neoMsgDecodeM(data []byte) (int, error) {
return 22 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AddTransaction"}
}
// 99. AddObject
......@@ -13280,7 +13280,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 {
......@@ -13442,7 +13442,7 @@ func (p *AddObject) neoMsgDecodeM(data []byte) (int, error) {
return 53 + int(nread), nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"AddObject"}
}
// 100. Truncate
......@@ -13467,7 +13467,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 {
......@@ -13523,7 +13523,7 @@ func (p *Truncate) neoMsgDecodeM(data []byte) (int, error) {
return 11, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"Truncate"}
}
// 101. FlushLog
......@@ -13568,7 +13568,7 @@ func (p *FlushLog) neoMsgDecodeM(data []byte) (int, error) {
return 1, nil
overflow:
return 0, ErrDecodeOverflow
return 0, &ErrDecodeOverflow{"FlushLog"}
}
// registry of message types
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment