Commit 9888b7dc authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 7077ecf5
......@@ -135,9 +135,12 @@ type NodeUUID int32
// TODO NodeType -> base NodeUUID
// ErrDecodeOverflow is the error returned by NEOPktDecode when decoding hit buffer overflow
var ErrDecodeOverflow = errors.New("decode: bufer overflow")
// NEOPkt is the interface implemented by packets to marshal/unmarshal them into/from wire format
// XXX -> will be neo.Pkt after splitting into packages
type NEOPkt interface {
// NEOPktMsgCode returns message code needed to be used for particular packet type
// on the wire
......@@ -150,7 +153,7 @@ type NEOPkt interface {
// len(buf) must be >= NEOPktEncodedLen()
NEOPktEncode(buf []byte)
// NEOPktDecode decodes data into.
// NEOPktDecode decodes data into current packet state.
NEOPktDecode(data []byte) (nread int, err error)
}
......
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