mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 23:33:37 +00:00
13 lines
290 B
Go
13 lines
290 B
Go
package payload
|
|
|
|
import (
|
|
"encoding"
|
|
)
|
|
|
|
// Payloader is anything that can be binary marshaled and unmarshaled.
|
|
// Every payload embbedded in messages need to satisfy the Payloader interface.
|
|
type Payloader interface {
|
|
encoding.BinaryMarshaler
|
|
encoding.BinaryUnmarshaler
|
|
Size() uint32
|
|
}
|