neo-go/pkg/network/payload/payload.go
2018-01-28 16:06:41 +01:00

10 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
}