neoneo-go/pkg/io/serializable.go
Roman Khimov e299a44983 io: drop Size() method from Serializable and associated
It's no longer needed after the io.GetVarSize() improvement. It's duplicating
a lot of EncodeBinary() logic also.
2019-09-17 13:21:45 +03:00

7 lines
172 B
Go

package io
// Serializable defines the binary encoding/decoding interface.
type Serializable interface {
DecodeBinary(*BinReader) error
EncodeBinary(*BinWriter) error
}