// ReadHeader creates a new MsgHeader given a reader at the beginning of a
// message.
ReadHeader creates a new MsgHeader given a reader at the beginning of a
message.
// ReadHeader creates a new MsgHeader given a reader at the beginning of a // message .
func ReadHeader(r io.Reader) (*MsgHeader, error) {
	var d [MsgHeaderLen]byte
	b := d[:]
	if _, err := io.ReadFull(r, b); err != nil {
		return nil, err
	}
	h := MsgHeader{}
	h.FromWire(b)
	return &h, nil
}
func ReadHeader ( r io . Reader ) ( * MsgHeader , error ) { var d [ MsgHeaderLen ] byte b := d [ : ] if _ , err := io . ReadFull ( r , b ) ; err != nil { return nil , err } h := MsgHeader { } h . FromWire ( b ) return & h , nil }
ReadHeader creates a new MsgHeader given a reader at the beginning of a
message.
ReadHeader creates a new MsgHeader given a reader at the beginning of a message .