Commit 18bec87d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a54ac5f3
...@@ -14,8 +14,9 @@ func (p *Address) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -14,8 +14,9 @@ func (p *Address) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint16(data[0:], p.Port) binary.BigEndian.PutUint16(data[0:], p.Port)
return int(nwrote) + 2 /*, nil*/ return int(nwrote) + 2 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *Address) NEODecode(data []byte) (int, error) { func (p *Address) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -34,6 +35,7 @@ func (p *Address) NEODecode(data []byte) (int, error) { ...@@ -34,6 +35,7 @@ func (p *Address) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 1. NodeInfo // 1. NodeInfo
...@@ -48,8 +50,9 @@ func (p *NodeInfo) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -48,8 +50,9 @@ func (p *NodeInfo) NEOEncode(data []byte) int /*(int, error)*/ {
float64_NEOEncode(data[14:], p.IdTimestamp) float64_NEOEncode(data[14:], p.IdTimestamp)
return int(nwrote) + 22 /*, nil*/ return int(nwrote) + 22 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *NodeInfo) NEODecode(data []byte) (int, error) { func (p *NodeInfo) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -72,6 +75,7 @@ func (p *NodeInfo) NEODecode(data []byte) (int, error) { ...@@ -72,6 +75,7 @@ func (p *NodeInfo) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 2. CellInfo // 2. CellInfo
...@@ -82,8 +86,9 @@ func (p *CellInfo) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -82,8 +86,9 @@ func (p *CellInfo) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint32(data[4:], uint32(int32(p.CellState))) binary.BigEndian.PutUint32(data[4:], uint32(int32(p.CellState)))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *CellInfo) NEODecode(data []byte) (int, error) { func (p *CellInfo) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -93,6 +98,7 @@ func (p *CellInfo) NEODecode(data []byte) (int, error) { ...@@ -93,6 +98,7 @@ func (p *CellInfo) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 3. RowInfo // 3. RowInfo
...@@ -103,8 +109,9 @@ func (p *RowInfo) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -103,8 +109,9 @@ func (p *RowInfo) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 4 /*, nil*/ return int(nwrote) + 4 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *RowInfo) NEODecode(data []byte) (int, error) { func (p *RowInfo) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -126,6 +133,7 @@ func (p *RowInfo) NEODecode(data []byte) (int, error) { ...@@ -126,6 +133,7 @@ func (p *RowInfo) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 4. Notify // 4. Notify
...@@ -135,8 +143,9 @@ func (p *Notify) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -135,8 +143,9 @@ func (p *Notify) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO strbytes // TODO strbytes
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *Notify) NEODecode(data []byte) (int, error) { func (p *Notify) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -154,6 +163,7 @@ func (p *Notify) NEODecode(data []byte) (int, error) { ...@@ -154,6 +163,7 @@ func (p *Notify) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 5. Error // 5. Error
...@@ -164,8 +174,9 @@ func (p *Error) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -164,8 +174,9 @@ func (p *Error) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO strbytes // TODO strbytes
return int(nwrote) + 4 /*, nil*/ return int(nwrote) + 4 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *Error) NEODecode(data []byte) (int, error) { func (p *Error) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -184,6 +195,7 @@ func (p *Error) NEODecode(data []byte) (int, error) { ...@@ -184,6 +195,7 @@ func (p *Error) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 6. Ping // 6. Ping
...@@ -192,8 +204,9 @@ func (p *Ping) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -192,8 +204,9 @@ func (p *Ping) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *Ping) NEODecode(data []byte) (int, error) { func (p *Ping) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -201,6 +214,7 @@ func (p *Ping) NEODecode(data []byte) (int, error) { ...@@ -201,6 +214,7 @@ func (p *Ping) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 7. CloseClient // 7. CloseClient
...@@ -209,8 +223,9 @@ func (p *CloseClient) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -209,8 +223,9 @@ func (p *CloseClient) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *CloseClient) NEODecode(data []byte) (int, error) { func (p *CloseClient) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -218,6 +233,7 @@ func (p *CloseClient) NEODecode(data []byte) (int, error) { ...@@ -218,6 +233,7 @@ func (p *CloseClient) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 8. RequestIdentification // 8. RequestIdentification
...@@ -233,8 +249,9 @@ func (p *RequestIdentification) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -233,8 +249,9 @@ func (p *RequestIdentification) NEOEncode(data []byte) int /*(int, error)*/ {
float64_NEOEncode(data[14:], p.IdTimestamp) float64_NEOEncode(data[14:], p.IdTimestamp)
return int(nwrote) + 22 /*, nil*/ return int(nwrote) + 22 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *RequestIdentification) NEODecode(data []byte) (int, error) { func (p *RequestIdentification) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -267,6 +284,7 @@ func (p *RequestIdentification) NEODecode(data []byte) (int, error) { ...@@ -267,6 +284,7 @@ func (p *RequestIdentification) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 9. AcceptIdentification // 9. AcceptIdentification
...@@ -283,8 +301,9 @@ func (p *AcceptIdentification) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -283,8 +301,9 @@ func (p *AcceptIdentification) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 22 /*, nil*/ return int(nwrote) + 22 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AcceptIdentification) NEODecode(data []byte) (int, error) { func (p *AcceptIdentification) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -334,6 +353,7 @@ func (p *AcceptIdentification) NEODecode(data []byte) (int, error) { ...@@ -334,6 +353,7 @@ func (p *AcceptIdentification) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 10. PrimaryMaster // 10. PrimaryMaster
...@@ -342,8 +362,9 @@ func (p *PrimaryMaster) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -342,8 +362,9 @@ func (p *PrimaryMaster) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *PrimaryMaster) NEODecode(data []byte) (int, error) { func (p *PrimaryMaster) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -351,6 +372,7 @@ func (p *PrimaryMaster) NEODecode(data []byte) (int, error) { ...@@ -351,6 +372,7 @@ func (p *PrimaryMaster) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 11. AnswerPrimary // 11. AnswerPrimary
...@@ -360,8 +382,9 @@ func (p *AnswerPrimary) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -360,8 +382,9 @@ func (p *AnswerPrimary) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint32(data[0:], uint32(int32(p.PrimaryUUID))) binary.BigEndian.PutUint32(data[0:], uint32(int32(p.PrimaryUUID)))
return int(nwrote) + 4 /*, nil*/ return int(nwrote) + 4 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerPrimary) NEODecode(data []byte) (int, error) { func (p *AnswerPrimary) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -370,6 +393,7 @@ func (p *AnswerPrimary) NEODecode(data []byte) (int, error) { ...@@ -370,6 +393,7 @@ func (p *AnswerPrimary) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 12. AnnouncePrimary // 12. AnnouncePrimary
...@@ -378,8 +402,9 @@ func (p *AnnouncePrimary) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -378,8 +402,9 @@ func (p *AnnouncePrimary) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnnouncePrimary) NEODecode(data []byte) (int, error) { func (p *AnnouncePrimary) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -387,6 +412,7 @@ func (p *AnnouncePrimary) NEODecode(data []byte) (int, error) { ...@@ -387,6 +412,7 @@ func (p *AnnouncePrimary) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 13. ReelectPrimary // 13. ReelectPrimary
...@@ -395,8 +421,9 @@ func (p *ReelectPrimary) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -395,8 +421,9 @@ func (p *ReelectPrimary) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *ReelectPrimary) NEODecode(data []byte) (int, error) { func (p *ReelectPrimary) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -404,6 +431,7 @@ func (p *ReelectPrimary) NEODecode(data []byte) (int, error) { ...@@ -404,6 +431,7 @@ func (p *ReelectPrimary) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 14. Recovery // 14. Recovery
...@@ -412,8 +440,9 @@ func (p *Recovery) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -412,8 +440,9 @@ func (p *Recovery) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *Recovery) NEODecode(data []byte) (int, error) { func (p *Recovery) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -421,6 +450,7 @@ func (p *Recovery) NEODecode(data []byte) (int, error) { ...@@ -421,6 +450,7 @@ func (p *Recovery) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 15. AnswerRecovery // 15. AnswerRecovery
...@@ -432,8 +462,9 @@ func (p *AnswerRecovery) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -432,8 +462,9 @@ func (p *AnswerRecovery) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[16:], uint64(p.TruncateTID)) binary.BigEndian.PutUint64(data[16:], uint64(p.TruncateTID))
return int(nwrote) + 24 /*, nil*/ return int(nwrote) + 24 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerRecovery) NEODecode(data []byte) (int, error) { func (p *AnswerRecovery) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -444,6 +475,7 @@ func (p *AnswerRecovery) NEODecode(data []byte) (int, error) { ...@@ -444,6 +475,7 @@ func (p *AnswerRecovery) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 16. LastIDs // 16. LastIDs
...@@ -452,8 +484,9 @@ func (p *LastIDs) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -452,8 +484,9 @@ func (p *LastIDs) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *LastIDs) NEODecode(data []byte) (int, error) { func (p *LastIDs) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -461,6 +494,7 @@ func (p *LastIDs) NEODecode(data []byte) (int, error) { ...@@ -461,6 +494,7 @@ func (p *LastIDs) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 17. AnswerLastIDs // 17. AnswerLastIDs
...@@ -471,8 +505,9 @@ func (p *AnswerLastIDs) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -471,8 +505,9 @@ func (p *AnswerLastIDs) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[8:], uint64(p.LastTID)) binary.BigEndian.PutUint64(data[8:], uint64(p.LastTID))
return int(nwrote) + 16 /*, nil*/ return int(nwrote) + 16 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerLastIDs) NEODecode(data []byte) (int, error) { func (p *AnswerLastIDs) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -482,6 +517,7 @@ func (p *AnswerLastIDs) NEODecode(data []byte) (int, error) { ...@@ -482,6 +517,7 @@ func (p *AnswerLastIDs) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 18. PartitionTable // 18. PartitionTable
...@@ -490,8 +526,9 @@ func (p *PartitionTable) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -490,8 +526,9 @@ func (p *PartitionTable) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *PartitionTable) NEODecode(data []byte) (int, error) { func (p *PartitionTable) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -499,6 +536,7 @@ func (p *PartitionTable) NEODecode(data []byte) (int, error) { ...@@ -499,6 +536,7 @@ func (p *PartitionTable) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 19. AnswerPartitionTable // 19. AnswerPartitionTable
...@@ -509,8 +547,9 @@ func (p *AnswerPartitionTable) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -509,8 +547,9 @@ func (p *AnswerPartitionTable) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerPartitionTable) NEODecode(data []byte) (int, error) { func (p *AnswerPartitionTable) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -544,6 +583,7 @@ func (p *AnswerPartitionTable) NEODecode(data []byte) (int, error) { ...@@ -544,6 +583,7 @@ func (p *AnswerPartitionTable) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 20. NotifyPartitionTable // 20. NotifyPartitionTable
...@@ -554,8 +594,9 @@ func (p *NotifyPartitionTable) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -554,8 +594,9 @@ func (p *NotifyPartitionTable) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *NotifyPartitionTable) NEODecode(data []byte) (int, error) { func (p *NotifyPartitionTable) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -589,6 +630,7 @@ func (p *NotifyPartitionTable) NEODecode(data []byte) (int, error) { ...@@ -589,6 +630,7 @@ func (p *NotifyPartitionTable) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 21. PartitionChanges // 21. PartitionChanges
...@@ -599,8 +641,9 @@ func (p *PartitionChanges) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -599,8 +641,9 @@ func (p *PartitionChanges) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *PartitionChanges) NEODecode(data []byte) (int, error) { func (p *PartitionChanges) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -627,6 +670,7 @@ func (p *PartitionChanges) NEODecode(data []byte) (int, error) { ...@@ -627,6 +670,7 @@ func (p *PartitionChanges) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 22. StartOperation // 22. StartOperation
...@@ -636,8 +680,9 @@ func (p *StartOperation) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -636,8 +680,9 @@ func (p *StartOperation) NEOEncode(data []byte) int /*(int, error)*/ {
(data[0:])[0] = bool2byte(p.Backup) (data[0:])[0] = bool2byte(p.Backup)
return int(nwrote) + 1 /*, nil*/ return int(nwrote) + 1 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *StartOperation) NEODecode(data []byte) (int, error) { func (p *StartOperation) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -646,6 +691,7 @@ func (p *StartOperation) NEODecode(data []byte) (int, error) { ...@@ -646,6 +691,7 @@ func (p *StartOperation) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 23. StopOperation // 23. StopOperation
...@@ -654,8 +700,9 @@ func (p *StopOperation) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -654,8 +700,9 @@ func (p *StopOperation) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *StopOperation) NEODecode(data []byte) (int, error) { func (p *StopOperation) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -663,6 +710,7 @@ func (p *StopOperation) NEODecode(data []byte) (int, error) { ...@@ -663,6 +710,7 @@ func (p *StopOperation) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 24. UnfinishedTransactions // 24. UnfinishedTransactions
...@@ -671,8 +719,9 @@ func (p *UnfinishedTransactions) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -671,8 +719,9 @@ func (p *UnfinishedTransactions) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *UnfinishedTransactions) NEODecode(data []byte) (int, error) { func (p *UnfinishedTransactions) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -680,6 +729,7 @@ func (p *UnfinishedTransactions) NEODecode(data []byte) (int, error) { ...@@ -680,6 +729,7 @@ func (p *UnfinishedTransactions) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 25. AnswerUnfinishedTransactions // 25. AnswerUnfinishedTransactions
...@@ -690,8 +740,9 @@ func (p *AnswerUnfinishedTransactions) NEOEncode(data []byte) int /*(int, error) ...@@ -690,8 +740,9 @@ func (p *AnswerUnfinishedTransactions) NEOEncode(data []byte) int /*(int, error)
// TODO slice // TODO slice
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerUnfinishedTransactions) NEODecode(data []byte) (int, error) { func (p *AnswerUnfinishedTransactions) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -712,6 +763,7 @@ func (p *AnswerUnfinishedTransactions) NEODecode(data []byte) (int, error) { ...@@ -712,6 +763,7 @@ func (p *AnswerUnfinishedTransactions) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 26. LockedTransactions // 26. LockedTransactions
...@@ -720,8 +772,9 @@ func (p *LockedTransactions) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -720,8 +772,9 @@ func (p *LockedTransactions) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *LockedTransactions) NEODecode(data []byte) (int, error) { func (p *LockedTransactions) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -729,6 +782,7 @@ func (p *LockedTransactions) NEODecode(data []byte) (int, error) { ...@@ -729,6 +782,7 @@ func (p *LockedTransactions) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 27. AnswerLockedTransactions // 27. AnswerLockedTransactions
...@@ -738,8 +792,9 @@ func (p *AnswerLockedTransactions) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -738,8 +792,9 @@ func (p *AnswerLockedTransactions) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO map // TODO map
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerLockedTransactions) NEODecode(data []byte) (int, error) { func (p *AnswerLockedTransactions) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -760,6 +815,7 @@ func (p *AnswerLockedTransactions) NEODecode(data []byte) (int, error) { ...@@ -760,6 +815,7 @@ func (p *AnswerLockedTransactions) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 28. FinalTID // 28. FinalTID
...@@ -769,8 +825,9 @@ func (p *FinalTID) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -769,8 +825,9 @@ func (p *FinalTID) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[0:], uint64(p.TTID)) binary.BigEndian.PutUint64(data[0:], uint64(p.TTID))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *FinalTID) NEODecode(data []byte) (int, error) { func (p *FinalTID) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -779,6 +836,7 @@ func (p *FinalTID) NEODecode(data []byte) (int, error) { ...@@ -779,6 +836,7 @@ func (p *FinalTID) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 29. AnswerFinalTID // 29. AnswerFinalTID
...@@ -788,8 +846,9 @@ func (p *AnswerFinalTID) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -788,8 +846,9 @@ func (p *AnswerFinalTID) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[0:], uint64(p.Tid)) binary.BigEndian.PutUint64(data[0:], uint64(p.Tid))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerFinalTID) NEODecode(data []byte) (int, error) { func (p *AnswerFinalTID) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -798,6 +857,7 @@ func (p *AnswerFinalTID) NEODecode(data []byte) (int, error) { ...@@ -798,6 +857,7 @@ func (p *AnswerFinalTID) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 30. ValidateTransaction // 30. ValidateTransaction
...@@ -808,8 +868,9 @@ func (p *ValidateTransaction) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -808,8 +868,9 @@ func (p *ValidateTransaction) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[8:], uint64(p.Tid)) binary.BigEndian.PutUint64(data[8:], uint64(p.Tid))
return int(nwrote) + 16 /*, nil*/ return int(nwrote) + 16 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *ValidateTransaction) NEODecode(data []byte) (int, error) { func (p *ValidateTransaction) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -819,6 +880,7 @@ func (p *ValidateTransaction) NEODecode(data []byte) (int, error) { ...@@ -819,6 +880,7 @@ func (p *ValidateTransaction) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 31. BeginTransaction // 31. BeginTransaction
...@@ -828,8 +890,9 @@ func (p *BeginTransaction) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -828,8 +890,9 @@ func (p *BeginTransaction) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[0:], uint64(p.Tid)) binary.BigEndian.PutUint64(data[0:], uint64(p.Tid))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *BeginTransaction) NEODecode(data []byte) (int, error) { func (p *BeginTransaction) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -838,6 +901,7 @@ func (p *BeginTransaction) NEODecode(data []byte) (int, error) { ...@@ -838,6 +901,7 @@ func (p *BeginTransaction) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 32. AnswerBeginTransaction // 32. AnswerBeginTransaction
...@@ -847,8 +911,9 @@ func (p *AnswerBeginTransaction) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -847,8 +911,9 @@ func (p *AnswerBeginTransaction) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[0:], uint64(p.Tid)) binary.BigEndian.PutUint64(data[0:], uint64(p.Tid))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerBeginTransaction) NEODecode(data []byte) (int, error) { func (p *AnswerBeginTransaction) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -857,6 +922,7 @@ func (p *AnswerBeginTransaction) NEODecode(data []byte) (int, error) { ...@@ -857,6 +922,7 @@ func (p *AnswerBeginTransaction) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 33. FinishTransaction // 33. FinishTransaction
...@@ -868,8 +934,9 @@ func (p *FinishTransaction) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -868,8 +934,9 @@ func (p *FinishTransaction) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *FinishTransaction) NEODecode(data []byte) (int, error) { func (p *FinishTransaction) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -902,6 +969,7 @@ func (p *FinishTransaction) NEODecode(data []byte) (int, error) { ...@@ -902,6 +969,7 @@ func (p *FinishTransaction) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 34. AnswerFinishTransaction // 34. AnswerFinishTransaction
...@@ -912,8 +980,9 @@ func (p *AnswerFinishTransaction) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -912,8 +980,9 @@ func (p *AnswerFinishTransaction) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[8:], uint64(p.Tid)) binary.BigEndian.PutUint64(data[8:], uint64(p.Tid))
return int(nwrote) + 16 /*, nil*/ return int(nwrote) + 16 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerFinishTransaction) NEODecode(data []byte) (int, error) { func (p *AnswerFinishTransaction) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -923,6 +992,7 @@ func (p *AnswerFinishTransaction) NEODecode(data []byte) (int, error) { ...@@ -923,6 +992,7 @@ func (p *AnswerFinishTransaction) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 35. NotifyTransactionFinished // 35. NotifyTransactionFinished
...@@ -933,8 +1003,9 @@ func (p *NotifyTransactionFinished) NEOEncode(data []byte) int /*(int, error)*/ ...@@ -933,8 +1003,9 @@ func (p *NotifyTransactionFinished) NEOEncode(data []byte) int /*(int, error)*/
binary.BigEndian.PutUint64(data[8:], uint64(p.MaxTID)) binary.BigEndian.PutUint64(data[8:], uint64(p.MaxTID))
return int(nwrote) + 16 /*, nil*/ return int(nwrote) + 16 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *NotifyTransactionFinished) NEODecode(data []byte) (int, error) { func (p *NotifyTransactionFinished) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -944,6 +1015,7 @@ func (p *NotifyTransactionFinished) NEODecode(data []byte) (int, error) { ...@@ -944,6 +1015,7 @@ func (p *NotifyTransactionFinished) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 36. LockInformation // 36. LockInformation
...@@ -954,8 +1026,9 @@ func (p *LockInformation) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -954,8 +1026,9 @@ func (p *LockInformation) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[8:], uint64(p.Tid)) binary.BigEndian.PutUint64(data[8:], uint64(p.Tid))
return int(nwrote) + 16 /*, nil*/ return int(nwrote) + 16 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *LockInformation) NEODecode(data []byte) (int, error) { func (p *LockInformation) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -965,6 +1038,7 @@ func (p *LockInformation) NEODecode(data []byte) (int, error) { ...@@ -965,6 +1038,7 @@ func (p *LockInformation) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 37. AnswerLockInformation // 37. AnswerLockInformation
...@@ -974,8 +1048,9 @@ func (p *AnswerLockInformation) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -974,8 +1048,9 @@ func (p *AnswerLockInformation) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[0:], uint64(p.Ttid)) binary.BigEndian.PutUint64(data[0:], uint64(p.Ttid))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerLockInformation) NEODecode(data []byte) (int, error) { func (p *AnswerLockInformation) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -984,6 +1059,7 @@ func (p *AnswerLockInformation) NEODecode(data []byte) (int, error) { ...@@ -984,6 +1059,7 @@ func (p *AnswerLockInformation) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 38. InvalidateObjects // 38. InvalidateObjects
...@@ -994,8 +1070,9 @@ func (p *InvalidateObjects) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -994,8 +1070,9 @@ func (p *InvalidateObjects) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *InvalidateObjects) NEODecode(data []byte) (int, error) { func (p *InvalidateObjects) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1016,6 +1093,7 @@ func (p *InvalidateObjects) NEODecode(data []byte) (int, error) { ...@@ -1016,6 +1093,7 @@ func (p *InvalidateObjects) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 39. UnlockInformation // 39. UnlockInformation
...@@ -1025,8 +1103,9 @@ func (p *UnlockInformation) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1025,8 +1103,9 @@ func (p *UnlockInformation) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[0:], uint64(p.TTID)) binary.BigEndian.PutUint64(data[0:], uint64(p.TTID))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *UnlockInformation) NEODecode(data []byte) (int, error) { func (p *UnlockInformation) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1035,6 +1114,7 @@ func (p *UnlockInformation) NEODecode(data []byte) (int, error) { ...@@ -1035,6 +1114,7 @@ func (p *UnlockInformation) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 40. GenerateOIDs // 40. GenerateOIDs
...@@ -1044,8 +1124,9 @@ func (p *GenerateOIDs) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1044,8 +1124,9 @@ func (p *GenerateOIDs) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint32(data[0:], p.NumOIDs) binary.BigEndian.PutUint32(data[0:], p.NumOIDs)
return int(nwrote) + 4 /*, nil*/ return int(nwrote) + 4 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *GenerateOIDs) NEODecode(data []byte) (int, error) { func (p *GenerateOIDs) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1054,6 +1135,7 @@ func (p *GenerateOIDs) NEODecode(data []byte) (int, error) { ...@@ -1054,6 +1135,7 @@ func (p *GenerateOIDs) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 41. AnswerGenerateOIDs // 41. AnswerGenerateOIDs
...@@ -1063,8 +1145,9 @@ func (p *AnswerGenerateOIDs) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1063,8 +1145,9 @@ func (p *AnswerGenerateOIDs) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerGenerateOIDs) NEODecode(data []byte) (int, error) { func (p *AnswerGenerateOIDs) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1084,6 +1167,7 @@ func (p *AnswerGenerateOIDs) NEODecode(data []byte) (int, error) { ...@@ -1084,6 +1167,7 @@ func (p *AnswerGenerateOIDs) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 42. StoreObject // 42. StoreObject
...@@ -1119,8 +1203,9 @@ func (p *StoreObject) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1119,8 +1203,9 @@ func (p *StoreObject) NEOEncode(data []byte) int /*(int, error)*/ {
(data[53:])[0] = bool2byte(p.Unlock) (data[53:])[0] = bool2byte(p.Unlock)
return int(nwrote) + 54 /*, nil*/ return int(nwrote) + 54 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *StoreObject) NEODecode(data []byte) (int, error) { func (p *StoreObject) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1166,6 +1251,7 @@ func (p *StoreObject) NEODecode(data []byte) (int, error) { ...@@ -1166,6 +1251,7 @@ func (p *StoreObject) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 43. AnswerStoreObject // 43. AnswerStoreObject
...@@ -1177,8 +1263,9 @@ func (p *AnswerStoreObject) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1177,8 +1263,9 @@ func (p *AnswerStoreObject) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[9:], uint64(p.Serial)) binary.BigEndian.PutUint64(data[9:], uint64(p.Serial))
return int(nwrote) + 17 /*, nil*/ return int(nwrote) + 17 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerStoreObject) NEODecode(data []byte) (int, error) { func (p *AnswerStoreObject) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1189,6 +1276,7 @@ func (p *AnswerStoreObject) NEODecode(data []byte) (int, error) { ...@@ -1189,6 +1276,7 @@ func (p *AnswerStoreObject) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 44. AbortTransaction // 44. AbortTransaction
...@@ -1198,8 +1286,9 @@ func (p *AbortTransaction) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1198,8 +1286,9 @@ func (p *AbortTransaction) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[0:], uint64(p.Tid)) binary.BigEndian.PutUint64(data[0:], uint64(p.Tid))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AbortTransaction) NEODecode(data []byte) (int, error) { func (p *AbortTransaction) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1208,6 +1297,7 @@ func (p *AbortTransaction) NEODecode(data []byte) (int, error) { ...@@ -1208,6 +1297,7 @@ func (p *AbortTransaction) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 45. StoreTransaction // 45. StoreTransaction
...@@ -1221,8 +1311,9 @@ func (p *StoreTransaction) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1221,8 +1311,9 @@ func (p *StoreTransaction) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *StoreTransaction) NEODecode(data []byte) (int, error) { func (p *StoreTransaction) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1273,6 +1364,7 @@ func (p *StoreTransaction) NEODecode(data []byte) (int, error) { ...@@ -1273,6 +1364,7 @@ func (p *StoreTransaction) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 46. VoteTransaction // 46. VoteTransaction
...@@ -1282,8 +1374,9 @@ func (p *VoteTransaction) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1282,8 +1374,9 @@ func (p *VoteTransaction) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[0:], uint64(p.Tid)) binary.BigEndian.PutUint64(data[0:], uint64(p.Tid))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *VoteTransaction) NEODecode(data []byte) (int, error) { func (p *VoteTransaction) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1292,6 +1385,7 @@ func (p *VoteTransaction) NEODecode(data []byte) (int, error) { ...@@ -1292,6 +1385,7 @@ func (p *VoteTransaction) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 47. GetObject // 47. GetObject
...@@ -1303,8 +1397,9 @@ func (p *GetObject) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1303,8 +1397,9 @@ func (p *GetObject) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[16:], uint64(p.Tid)) binary.BigEndian.PutUint64(data[16:], uint64(p.Tid))
return int(nwrote) + 24 /*, nil*/ return int(nwrote) + 24 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *GetObject) NEODecode(data []byte) (int, error) { func (p *GetObject) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1315,6 +1410,7 @@ func (p *GetObject) NEODecode(data []byte) (int, error) { ...@@ -1315,6 +1410,7 @@ func (p *GetObject) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 48. AnswerGetObject // 48. AnswerGetObject
...@@ -1349,8 +1445,9 @@ func (p *AnswerGetObject) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1349,8 +1445,9 @@ func (p *AnswerGetObject) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[45:], uint64(p.DataSerial)) binary.BigEndian.PutUint64(data[45:], uint64(p.DataSerial))
return int(nwrote) + 53 /*, nil*/ return int(nwrote) + 53 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerGetObject) NEODecode(data []byte) (int, error) { func (p *AnswerGetObject) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1395,6 +1492,7 @@ func (p *AnswerGetObject) NEODecode(data []byte) (int, error) { ...@@ -1395,6 +1492,7 @@ func (p *AnswerGetObject) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 49. TIDList // 49. TIDList
...@@ -1406,8 +1504,9 @@ func (p *TIDList) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1406,8 +1504,9 @@ func (p *TIDList) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint32(data[16:], p.Partition) binary.BigEndian.PutUint32(data[16:], p.Partition)
return int(nwrote) + 20 /*, nil*/ return int(nwrote) + 20 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *TIDList) NEODecode(data []byte) (int, error) { func (p *TIDList) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1418,6 +1517,7 @@ func (p *TIDList) NEODecode(data []byte) (int, error) { ...@@ -1418,6 +1517,7 @@ func (p *TIDList) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 50. AnswerTIDList // 50. AnswerTIDList
...@@ -1427,8 +1527,9 @@ func (p *AnswerTIDList) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1427,8 +1527,9 @@ func (p *AnswerTIDList) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerTIDList) NEODecode(data []byte) (int, error) { func (p *AnswerTIDList) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1448,6 +1549,7 @@ func (p *AnswerTIDList) NEODecode(data []byte) (int, error) { ...@@ -1448,6 +1549,7 @@ func (p *AnswerTIDList) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 51. TIDListFrom // 51. TIDListFrom
...@@ -1460,8 +1562,9 @@ func (p *TIDListFrom) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1460,8 +1562,9 @@ func (p *TIDListFrom) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint32(data[20:], p.Partition) binary.BigEndian.PutUint32(data[20:], p.Partition)
return int(nwrote) + 24 /*, nil*/ return int(nwrote) + 24 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *TIDListFrom) NEODecode(data []byte) (int, error) { func (p *TIDListFrom) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1473,6 +1576,7 @@ func (p *TIDListFrom) NEODecode(data []byte) (int, error) { ...@@ -1473,6 +1576,7 @@ func (p *TIDListFrom) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 52. AnswerTIDListFrom // 52. AnswerTIDListFrom
...@@ -1482,8 +1586,9 @@ func (p *AnswerTIDListFrom) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1482,8 +1586,9 @@ func (p *AnswerTIDListFrom) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerTIDListFrom) NEODecode(data []byte) (int, error) { func (p *AnswerTIDListFrom) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1503,6 +1608,7 @@ func (p *AnswerTIDListFrom) NEODecode(data []byte) (int, error) { ...@@ -1503,6 +1608,7 @@ func (p *AnswerTIDListFrom) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 53. TransactionInformation // 53. TransactionInformation
...@@ -1512,8 +1618,9 @@ func (p *TransactionInformation) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1512,8 +1618,9 @@ func (p *TransactionInformation) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[0:], uint64(p.Tid)) binary.BigEndian.PutUint64(data[0:], uint64(p.Tid))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *TransactionInformation) NEODecode(data []byte) (int, error) { func (p *TransactionInformation) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1522,6 +1629,7 @@ func (p *TransactionInformation) NEODecode(data []byte) (int, error) { ...@@ -1522,6 +1629,7 @@ func (p *TransactionInformation) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 54. AnswerTransactionInformation // 54. AnswerTransactionInformation
...@@ -1536,8 +1644,9 @@ func (p *AnswerTransactionInformation) NEOEncode(data []byte) int /*(int, error) ...@@ -1536,8 +1644,9 @@ func (p *AnswerTransactionInformation) NEOEncode(data []byte) int /*(int, error)
// TODO slice // TODO slice
return int(nwrote) + 9 /*, nil*/ return int(nwrote) + 9 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerTransactionInformation) NEODecode(data []byte) (int, error) { func (p *AnswerTransactionInformation) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1589,6 +1698,7 @@ func (p *AnswerTransactionInformation) NEODecode(data []byte) (int, error) { ...@@ -1589,6 +1698,7 @@ func (p *AnswerTransactionInformation) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 55. ObjectHistory // 55. ObjectHistory
...@@ -1600,8 +1710,9 @@ func (p *ObjectHistory) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1600,8 +1710,9 @@ func (p *ObjectHistory) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[16:], p.Last) binary.BigEndian.PutUint64(data[16:], p.Last)
return int(nwrote) + 24 /*, nil*/ return int(nwrote) + 24 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *ObjectHistory) NEODecode(data []byte) (int, error) { func (p *ObjectHistory) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1612,6 +1723,7 @@ func (p *ObjectHistory) NEODecode(data []byte) (int, error) { ...@@ -1612,6 +1723,7 @@ func (p *ObjectHistory) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 56. AnswerObjectHistory // 56. AnswerObjectHistory
...@@ -1622,8 +1734,9 @@ func (p *AnswerObjectHistory) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1622,8 +1734,9 @@ func (p *AnswerObjectHistory) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerObjectHistory) NEODecode(data []byte) (int, error) { func (p *AnswerObjectHistory) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1648,6 +1761,7 @@ func (p *AnswerObjectHistory) NEODecode(data []byte) (int, error) { ...@@ -1648,6 +1761,7 @@ func (p *AnswerObjectHistory) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 57. PartitionList // 57. PartitionList
...@@ -1659,8 +1773,9 @@ func (p *PartitionList) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1659,8 +1773,9 @@ func (p *PartitionList) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint32(data[8:], uint32(int32(p.UUID))) binary.BigEndian.PutUint32(data[8:], uint32(int32(p.UUID)))
return int(nwrote) + 12 /*, nil*/ return int(nwrote) + 12 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *PartitionList) NEODecode(data []byte) (int, error) { func (p *PartitionList) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1671,6 +1786,7 @@ func (p *PartitionList) NEODecode(data []byte) (int, error) { ...@@ -1671,6 +1786,7 @@ func (p *PartitionList) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 58. AnswerPartitionList // 58. AnswerPartitionList
...@@ -1681,8 +1797,9 @@ func (p *AnswerPartitionList) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1681,8 +1797,9 @@ func (p *AnswerPartitionList) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerPartitionList) NEODecode(data []byte) (int, error) { func (p *AnswerPartitionList) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1716,6 +1833,7 @@ func (p *AnswerPartitionList) NEODecode(data []byte) (int, error) { ...@@ -1716,6 +1833,7 @@ func (p *AnswerPartitionList) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 59. X_NodeList // 59. X_NodeList
...@@ -1725,8 +1843,9 @@ func (p *X_NodeList) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1725,8 +1843,9 @@ func (p *X_NodeList) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint32(data[0:], uint32(int32(p.NodeType))) binary.BigEndian.PutUint32(data[0:], uint32(int32(p.NodeType)))
return int(nwrote) + 4 /*, nil*/ return int(nwrote) + 4 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *X_NodeList) NEODecode(data []byte) (int, error) { func (p *X_NodeList) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1735,6 +1854,7 @@ func (p *X_NodeList) NEODecode(data []byte) (int, error) { ...@@ -1735,6 +1854,7 @@ func (p *X_NodeList) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 60. AnswerNodeList // 60. AnswerNodeList
...@@ -1744,8 +1864,9 @@ func (p *AnswerNodeList) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1744,8 +1864,9 @@ func (p *AnswerNodeList) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerNodeList) NEODecode(data []byte) (int, error) { func (p *AnswerNodeList) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1779,6 +1900,7 @@ func (p *AnswerNodeList) NEODecode(data []byte) (int, error) { ...@@ -1779,6 +1900,7 @@ func (p *AnswerNodeList) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 61. SetNodeState // 61. SetNodeState
...@@ -1789,8 +1911,9 @@ func (p *SetNodeState) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1789,8 +1911,9 @@ func (p *SetNodeState) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint32(data[4:], uint32(int32(p.NodeState))) binary.BigEndian.PutUint32(data[4:], uint32(int32(p.NodeState)))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *SetNodeState) NEODecode(data []byte) (int, error) { func (p *SetNodeState) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1800,6 +1923,7 @@ func (p *SetNodeState) NEODecode(data []byte) (int, error) { ...@@ -1800,6 +1923,7 @@ func (p *SetNodeState) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 62. AddPendingNodes // 62. AddPendingNodes
...@@ -1809,8 +1933,9 @@ func (p *AddPendingNodes) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1809,8 +1933,9 @@ func (p *AddPendingNodes) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AddPendingNodes) NEODecode(data []byte) (int, error) { func (p *AddPendingNodes) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1830,6 +1955,7 @@ func (p *AddPendingNodes) NEODecode(data []byte) (int, error) { ...@@ -1830,6 +1955,7 @@ func (p *AddPendingNodes) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 63. TweakPartitionTable // 63. TweakPartitionTable
...@@ -1839,8 +1965,9 @@ func (p *TweakPartitionTable) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1839,8 +1965,9 @@ func (p *TweakPartitionTable) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *TweakPartitionTable) NEODecode(data []byte) (int, error) { func (p *TweakPartitionTable) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1860,6 +1987,7 @@ func (p *TweakPartitionTable) NEODecode(data []byte) (int, error) { ...@@ -1860,6 +1987,7 @@ func (p *TweakPartitionTable) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 64. NotifyNodeInformation // 64. NotifyNodeInformation
...@@ -1869,8 +1997,9 @@ func (p *NotifyNodeInformation) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1869,8 +1997,9 @@ func (p *NotifyNodeInformation) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *NotifyNodeInformation) NEODecode(data []byte) (int, error) { func (p *NotifyNodeInformation) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1904,6 +2033,7 @@ func (p *NotifyNodeInformation) NEODecode(data []byte) (int, error) { ...@@ -1904,6 +2033,7 @@ func (p *NotifyNodeInformation) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 65. NodeInformation // 65. NodeInformation
...@@ -1912,8 +2042,9 @@ func (p *NodeInformation) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1912,8 +2042,9 @@ func (p *NodeInformation) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *NodeInformation) NEODecode(data []byte) (int, error) { func (p *NodeInformation) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1921,6 +2052,7 @@ func (p *NodeInformation) NEODecode(data []byte) (int, error) { ...@@ -1921,6 +2052,7 @@ func (p *NodeInformation) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 66. SetClusterState // 66. SetClusterState
...@@ -1930,8 +2062,9 @@ func (p *SetClusterState) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1930,8 +2062,9 @@ func (p *SetClusterState) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint32(data[0:], uint32(int32(p.State))) binary.BigEndian.PutUint32(data[0:], uint32(int32(p.State)))
return int(nwrote) + 4 /*, nil*/ return int(nwrote) + 4 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *SetClusterState) NEODecode(data []byte) (int, error) { func (p *SetClusterState) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1940,6 +2073,7 @@ func (p *SetClusterState) NEODecode(data []byte) (int, error) { ...@@ -1940,6 +2073,7 @@ func (p *SetClusterState) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 67. ClusterInformation // 67. ClusterInformation
...@@ -1949,8 +2083,9 @@ func (p *ClusterInformation) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1949,8 +2083,9 @@ func (p *ClusterInformation) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint32(data[0:], uint32(int32(p.State))) binary.BigEndian.PutUint32(data[0:], uint32(int32(p.State)))
return int(nwrote) + 4 /*, nil*/ return int(nwrote) + 4 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *ClusterInformation) NEODecode(data []byte) (int, error) { func (p *ClusterInformation) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1959,6 +2094,7 @@ func (p *ClusterInformation) NEODecode(data []byte) (int, error) { ...@@ -1959,6 +2094,7 @@ func (p *ClusterInformation) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 68. X_ClusterState // 68. X_ClusterState
...@@ -1968,8 +2104,9 @@ func (p *X_ClusterState) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1968,8 +2104,9 @@ func (p *X_ClusterState) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint32(data[0:], uint32(int32(p.State))) binary.BigEndian.PutUint32(data[0:], uint32(int32(p.State)))
return int(nwrote) + 4 /*, nil*/ return int(nwrote) + 4 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *X_ClusterState) NEODecode(data []byte) (int, error) { func (p *X_ClusterState) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -1978,6 +2115,7 @@ func (p *X_ClusterState) NEODecode(data []byte) (int, error) { ...@@ -1978,6 +2115,7 @@ func (p *X_ClusterState) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 69. ObjectUndoSerial // 69. ObjectUndoSerial
...@@ -1990,8 +2128,9 @@ func (p *ObjectUndoSerial) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -1990,8 +2128,9 @@ func (p *ObjectUndoSerial) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 24 /*, nil*/ return int(nwrote) + 24 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *ObjectUndoSerial) NEODecode(data []byte) (int, error) { func (p *ObjectUndoSerial) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2014,6 +2153,7 @@ func (p *ObjectUndoSerial) NEODecode(data []byte) (int, error) { ...@@ -2014,6 +2153,7 @@ func (p *ObjectUndoSerial) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 70. AnswerObjectUndoSerial // 70. AnswerObjectUndoSerial
...@@ -2023,8 +2163,9 @@ func (p *AnswerObjectUndoSerial) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2023,8 +2163,9 @@ func (p *AnswerObjectUndoSerial) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO map // TODO map
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerObjectUndoSerial) NEODecode(data []byte) (int, error) { func (p *AnswerObjectUndoSerial) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2057,6 +2198,7 @@ func (p *AnswerObjectUndoSerial) NEODecode(data []byte) (int, error) { ...@@ -2057,6 +2198,7 @@ func (p *AnswerObjectUndoSerial) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 71. HasLock // 71. HasLock
...@@ -2067,8 +2209,9 @@ func (p *HasLock) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2067,8 +2209,9 @@ func (p *HasLock) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[8:], uint64(p.Oid)) binary.BigEndian.PutUint64(data[8:], uint64(p.Oid))
return int(nwrote) + 16 /*, nil*/ return int(nwrote) + 16 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *HasLock) NEODecode(data []byte) (int, error) { func (p *HasLock) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2078,6 +2221,7 @@ func (p *HasLock) NEODecode(data []byte) (int, error) { ...@@ -2078,6 +2221,7 @@ func (p *HasLock) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 72. AnswerHasLock // 72. AnswerHasLock
...@@ -2088,8 +2232,9 @@ func (p *AnswerHasLock) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2088,8 +2232,9 @@ func (p *AnswerHasLock) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint32(data[8:], uint32(int32(p.LockState))) binary.BigEndian.PutUint32(data[8:], uint32(int32(p.LockState)))
return int(nwrote) + 12 /*, nil*/ return int(nwrote) + 12 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerHasLock) NEODecode(data []byte) (int, error) { func (p *AnswerHasLock) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2099,6 +2244,7 @@ func (p *AnswerHasLock) NEODecode(data []byte) (int, error) { ...@@ -2099,6 +2244,7 @@ func (p *AnswerHasLock) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 73. CheckCurrentSerial // 73. CheckCurrentSerial
...@@ -2110,8 +2256,9 @@ func (p *CheckCurrentSerial) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2110,8 +2256,9 @@ func (p *CheckCurrentSerial) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[16:], uint64(p.Oid)) binary.BigEndian.PutUint64(data[16:], uint64(p.Oid))
return int(nwrote) + 24 /*, nil*/ return int(nwrote) + 24 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *CheckCurrentSerial) NEODecode(data []byte) (int, error) { func (p *CheckCurrentSerial) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2122,6 +2269,7 @@ func (p *CheckCurrentSerial) NEODecode(data []byte) (int, error) { ...@@ -2122,6 +2269,7 @@ func (p *CheckCurrentSerial) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 74. AnswerCheckCurrentSerial // 74. AnswerCheckCurrentSerial
...@@ -2133,8 +2281,9 @@ func (p *AnswerCheckCurrentSerial) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2133,8 +2281,9 @@ func (p *AnswerCheckCurrentSerial) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[9:], uint64(p.Serial)) binary.BigEndian.PutUint64(data[9:], uint64(p.Serial))
return int(nwrote) + 17 /*, nil*/ return int(nwrote) + 17 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerCheckCurrentSerial) NEODecode(data []byte) (int, error) { func (p *AnswerCheckCurrentSerial) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2145,6 +2294,7 @@ func (p *AnswerCheckCurrentSerial) NEODecode(data []byte) (int, error) { ...@@ -2145,6 +2294,7 @@ func (p *AnswerCheckCurrentSerial) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 75. Pack // 75. Pack
...@@ -2154,8 +2304,9 @@ func (p *Pack) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2154,8 +2304,9 @@ func (p *Pack) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[0:], uint64(p.Tid)) binary.BigEndian.PutUint64(data[0:], uint64(p.Tid))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *Pack) NEODecode(data []byte) (int, error) { func (p *Pack) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2164,6 +2315,7 @@ func (p *Pack) NEODecode(data []byte) (int, error) { ...@@ -2164,6 +2315,7 @@ func (p *Pack) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 76. AnswerPack // 76. AnswerPack
...@@ -2173,8 +2325,9 @@ func (p *AnswerPack) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2173,8 +2325,9 @@ func (p *AnswerPack) NEOEncode(data []byte) int /*(int, error)*/ {
(data[0:])[0] = bool2byte(p.Status) (data[0:])[0] = bool2byte(p.Status)
return int(nwrote) + 1 /*, nil*/ return int(nwrote) + 1 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerPack) NEODecode(data []byte) (int, error) { func (p *AnswerPack) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2183,6 +2336,7 @@ func (p *AnswerPack) NEODecode(data []byte) (int, error) { ...@@ -2183,6 +2336,7 @@ func (p *AnswerPack) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 77. CheckReplicas // 77. CheckReplicas
...@@ -2194,8 +2348,9 @@ func (p *CheckReplicas) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2194,8 +2348,9 @@ func (p *CheckReplicas) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[8:], uint64(p.MaxTID)) binary.BigEndian.PutUint64(data[8:], uint64(p.MaxTID))
return int(nwrote) + 16 /*, nil*/ return int(nwrote) + 16 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *CheckReplicas) NEODecode(data []byte) (int, error) { func (p *CheckReplicas) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2218,6 +2373,7 @@ func (p *CheckReplicas) NEODecode(data []byte) (int, error) { ...@@ -2218,6 +2373,7 @@ func (p *CheckReplicas) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 78. CheckPartition // 78. CheckPartition
...@@ -2232,8 +2388,9 @@ func (p *CheckPartition) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2232,8 +2388,9 @@ func (p *CheckPartition) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[14:], uint64(p.MaxTID)) binary.BigEndian.PutUint64(data[14:], uint64(p.MaxTID))
return int(nwrote) + 22 /*, nil*/ return int(nwrote) + 22 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *CheckPartition) NEODecode(data []byte) (int, error) { func (p *CheckPartition) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2265,6 +2422,7 @@ func (p *CheckPartition) NEODecode(data []byte) (int, error) { ...@@ -2265,6 +2422,7 @@ func (p *CheckPartition) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 79. CheckTIDRange // 79. CheckTIDRange
...@@ -2277,8 +2435,9 @@ func (p *CheckTIDRange) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2277,8 +2435,9 @@ func (p *CheckTIDRange) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[16:], uint64(p.MaxTID)) binary.BigEndian.PutUint64(data[16:], uint64(p.MaxTID))
return int(nwrote) + 24 /*, nil*/ return int(nwrote) + 24 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *CheckTIDRange) NEODecode(data []byte) (int, error) { func (p *CheckTIDRange) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2290,6 +2449,7 @@ func (p *CheckTIDRange) NEODecode(data []byte) (int, error) { ...@@ -2290,6 +2449,7 @@ func (p *CheckTIDRange) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 80. AnswerCheckTIDRange // 80. AnswerCheckTIDRange
...@@ -2320,8 +2480,9 @@ func (p *AnswerCheckTIDRange) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2320,8 +2480,9 @@ func (p *AnswerCheckTIDRange) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[24:], uint64(p.MaxTID)) binary.BigEndian.PutUint64(data[24:], uint64(p.MaxTID))
return int(nwrote) + 32 /*, nil*/ return int(nwrote) + 32 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerCheckTIDRange) NEODecode(data []byte) (int, error) { func (p *AnswerCheckTIDRange) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2351,6 +2512,7 @@ func (p *AnswerCheckTIDRange) NEODecode(data []byte) (int, error) { ...@@ -2351,6 +2512,7 @@ func (p *AnswerCheckTIDRange) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 81. CheckSerialRange // 81. CheckSerialRange
...@@ -2364,8 +2526,9 @@ func (p *CheckSerialRange) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2364,8 +2526,9 @@ func (p *CheckSerialRange) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[24:], uint64(p.MinOID)) binary.BigEndian.PutUint64(data[24:], uint64(p.MinOID))
return int(nwrote) + 32 /*, nil*/ return int(nwrote) + 32 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *CheckSerialRange) NEODecode(data []byte) (int, error) { func (p *CheckSerialRange) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2378,6 +2541,7 @@ func (p *CheckSerialRange) NEODecode(data []byte) (int, error) { ...@@ -2378,6 +2541,7 @@ func (p *CheckSerialRange) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 82. AnswerCheckSerialRange // 82. AnswerCheckSerialRange
...@@ -2429,8 +2593,9 @@ func (p *AnswerCheckSerialRange) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2429,8 +2593,9 @@ func (p *AnswerCheckSerialRange) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[52:], uint64(p.MaxOID)) binary.BigEndian.PutUint64(data[52:], uint64(p.MaxOID))
return int(nwrote) + 60 /*, nil*/ return int(nwrote) + 60 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerCheckSerialRange) NEODecode(data []byte) (int, error) { func (p *AnswerCheckSerialRange) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2481,6 +2646,7 @@ func (p *AnswerCheckSerialRange) NEODecode(data []byte) (int, error) { ...@@ -2481,6 +2646,7 @@ func (p *AnswerCheckSerialRange) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 83. PartitionCorrupted // 83. PartitionCorrupted
...@@ -2491,8 +2657,9 @@ func (p *PartitionCorrupted) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2491,8 +2657,9 @@ func (p *PartitionCorrupted) NEOEncode(data []byte) int /*(int, error)*/ {
// TODO slice // TODO slice
return int(nwrote) + 4 /*, nil*/ return int(nwrote) + 4 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *PartitionCorrupted) NEODecode(data []byte) (int, error) { func (p *PartitionCorrupted) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2513,6 +2680,7 @@ func (p *PartitionCorrupted) NEODecode(data []byte) (int, error) { ...@@ -2513,6 +2680,7 @@ func (p *PartitionCorrupted) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 84. LastTransaction // 84. LastTransaction
...@@ -2521,8 +2689,9 @@ func (p *LastTransaction) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2521,8 +2689,9 @@ func (p *LastTransaction) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *LastTransaction) NEODecode(data []byte) (int, error) { func (p *LastTransaction) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2530,6 +2699,7 @@ func (p *LastTransaction) NEODecode(data []byte) (int, error) { ...@@ -2530,6 +2699,7 @@ func (p *LastTransaction) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 85. AnswerLastTransaction // 85. AnswerLastTransaction
...@@ -2539,8 +2709,9 @@ func (p *AnswerLastTransaction) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2539,8 +2709,9 @@ func (p *AnswerLastTransaction) NEOEncode(data []byte) int /*(int, error)*/ {
binary.BigEndian.PutUint64(data[0:], uint64(p.Tid)) binary.BigEndian.PutUint64(data[0:], uint64(p.Tid))
return int(nwrote) + 8 /*, nil*/ return int(nwrote) + 8 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *AnswerLastTransaction) NEODecode(data []byte) (int, error) { func (p *AnswerLastTransaction) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2549,6 +2720,7 @@ func (p *AnswerLastTransaction) NEODecode(data []byte) (int, error) { ...@@ -2549,6 +2720,7 @@ func (p *AnswerLastTransaction) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
// 86. NotifyReady // 86. NotifyReady
...@@ -2557,8 +2729,9 @@ func (p *NotifyReady) NEOEncode(data []byte) int /*(int, error)*/ { ...@@ -2557,8 +2729,9 @@ func (p *NotifyReady) NEOEncode(data []byte) int /*(int, error)*/ {
var nwrote uint32 var nwrote uint32
return int(nwrote) + 0 /*, nil*/ return int(nwrote) + 0 /*, nil*/
/*overflow: overflow:
panic(0) */ //return 0, ErrEncodeOverflow panic(0) //return 0, ErrEncodeOverflow
goto overflow
} }
func (p *NotifyReady) NEODecode(data []byte) (int, error) { func (p *NotifyReady) NEODecode(data []byte) (int, error) {
var nread uint32 var nread uint32
...@@ -2566,4 +2739,5 @@ func (p *NotifyReady) NEODecode(data []byte) (int, error) { ...@@ -2566,4 +2739,5 @@ func (p *NotifyReady) NEODecode(data []byte) (int, error) {
overflow: overflow:
return 0, ErrDecodeOverflow return 0, ErrDecodeOverflow
goto overflow
} }
...@@ -224,8 +224,9 @@ func (d *decoder) genPrologue(recvName, typeName string) { ...@@ -224,8 +224,9 @@ func (d *decoder) genPrologue(recvName, typeName string) {
func (e *encoder) genEpilogue() { func (e *encoder) genEpilogue() {
e.emit("return int(nwrote) + %v /*, nil*/", e.n) e.emit("return int(nwrote) + %v /*, nil*/", e.n)
e.emit("\n/*overflow:") e.emit("\noverflow:")
e.emit("panic(0) */ //return 0, ErrEncodeOverflow") e.emit("panic(0) //return 0, ErrEncodeOverflow")
e.emit("goto overflow") // TODO remove
e.emit("}") e.emit("}")
} }
...@@ -233,6 +234,7 @@ func (d *decoder) genEpilogue() { ...@@ -233,6 +234,7 @@ func (d *decoder) genEpilogue() {
d.emit("return int(nread) + %v, nil", d.n) d.emit("return int(nread) + %v, nil", d.n)
d.emit("\noverflow:") d.emit("\noverflow:")
d.emit("return 0, ErrDecodeOverflow") d.emit("return 0, ErrDecodeOverflow")
d.emit("goto overflow") // TODO remove
d.emit("}") d.emit("}")
} }
......
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