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
b5a7a5cd
Commit
b5a7a5cd
authored
Dec 27, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c93753be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
t/neo/marshal.go
t/neo/marshal.go
+12
-0
t/neo/proto.go
t/neo/proto.go
+1
-1
No files found.
t/neo/marshal.go
View file @
b5a7a5cd
...
@@ -472,3 +472,15 @@ func (p *StoreObject) NEODecode(data []byte) (int, error) {
...
@@ -472,3 +472,15 @@ func (p *StoreObject) NEODecode(data []byte) (int, error) {
p
.
Unlock
=
bool
((
data
[
16
:
])[
0
])
p
.
Unlock
=
bool
((
data
[
16
:
])[
0
])
return
17
/* + TODO variable part */
,
nil
return
17
/* + TODO variable part */
,
nil
}
}
func
(
p
*
AnswerStoreObject
)
NEODecode
(
data
[]
byte
)
(
int
,
error
)
{
p
.
Conflicting
=
bool
((
data
[
0
:
])[
0
])
p
.
Oid
=
BigEndian
.
Uint64
(
data
[
1
:
])
p
.
Serial
=
BigEndian
.
Uint64
(
data
[
9
:
])
return
17
/* + TODO variable part */
,
nil
}
func
(
p
*
AbortTransaction
)
NEODecode
(
data
[]
byte
)
(
int
,
error
)
{
p
.
Tid
=
BigEndian
.
Uint64
(
data
[
0
:
])
return
8
/* + TODO variable part */
,
nil
}
t/neo/proto.go
View file @
b5a7a5cd
...
@@ -431,7 +431,6 @@ type StoreObject struct {
...
@@ -431,7 +431,6 @@ type StoreObject struct {
Unlock
bool
Unlock
bool
}
}
/*
type
AnswerStoreObject
struct
{
type
AnswerStoreObject
struct
{
Conflicting
bool
Conflicting
bool
Oid
Oid
Oid
Oid
...
@@ -443,6 +442,7 @@ type AbortTransaction struct {
...
@@ -443,6 +442,7 @@ type AbortTransaction struct {
Tid
Tid
Tid
Tid
}
}
/*
// Ask to store a transaction. C -> S.
// Ask to store a transaction. C -> S.
// Answer if transaction has been stored. S -> C.
// Answer if transaction has been stored. S -> C.
type StoreTransaction struct {
type StoreTransaction struct {
...
...
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