Commit 41b801c6 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent fcb1c145
...@@ -531,3 +531,10 @@ func (p *VoteTransaction) NEODecode(data []byte) (int, error) { ...@@ -531,3 +531,10 @@ func (p *VoteTransaction) NEODecode(data []byte) (int, error) {
p.Tid = BigEndian.Uint64(data[0:]) p.Tid = BigEndian.Uint64(data[0:])
return 8 /* + TODO variable part */, nil return 8 /* + TODO variable part */, nil
} }
func (p *GetObject) NEODecode(data []byte) (int, error) {
p.Oid = BigEndian.Uint64(data[0:])
p.Serial = BigEndian.Uint64(data[8:])
p.Tid = BigEndian.Uint64(data[16:])
return 24 /* + TODO variable part */, nil
}
...@@ -460,7 +460,6 @@ type VoteTransaction struct { ...@@ -460,7 +460,6 @@ type VoteTransaction struct {
// TODO _answer = PFEmpty // TODO _answer = PFEmpty
} }
/*
// Ask a stored object by its OID and a serial or a TID if given. If a serial // Ask a stored object by its OID and a serial or a TID if given. If a serial
// is specified, the specified revision of an object will be returned. If // is specified, the specified revision of an object will be returned. If
// a TID is specified, an object right before the TID will be returned. C -> S. // a TID is specified, an object right before the TID will be returned. C -> S.
...@@ -471,6 +470,7 @@ type GetObject struct { ...@@ -471,6 +470,7 @@ type GetObject struct {
Tid Tid Tid Tid
} }
/*
// XXX answer_object ? // XXX answer_object ?
type AnswerGetObject struct { type AnswerGetObject struct {
Oid Oid Oid Oid
......
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