Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (10 sloc) 280 Bytes
package noise
import "github.com/perlin-network/noise/payload"
var _ Message = (*EmptyMessage)(nil)
type EmptyMessage struct{}
func (EmptyMessage) Read(reader payload.Reader) (Message, error) {
return EmptyMessage{}, nil
}
func (EmptyMessage) Write() []byte {
return nil
}
You can’t perform that action at this time.