mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-02-13 05:04:49 +00:00
11 lines
193 B
Go
11 lines
193 B
Go
|
package payload
|
||
|
|
||
|
import "io"
|
||
|
|
||
|
// Payload is anything that can be binary encoded/decoded.
|
||
|
type Payload interface {
|
||
|
EncodeBinary(io.Writer) error
|
||
|
DecodeBinary(io.Reader) error
|
||
|
Size() uint32
|
||
|
}
|