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