forked from TrueCloudLab/neoneo-go
11 lines
195 B
Go
11 lines
195 B
Go
|
package io
|
||
|
|
||
|
import "io"
|
||
|
|
||
|
// Serializable defines the binary encoding/decoding interface.
|
||
|
type Serializable interface {
|
||
|
Size() int
|
||
|
DecodeBinary(io.Reader) error
|
||
|
EncodeBinary(io.Writer) error
|
||
|
}
|