func ParseMethodReply(r io.Reader) (n MethodReply, err error) {
	bb := []byte{0, 0}
	if _, err = io.ReadFull(r, bb); err != nil {
		return
	}
	n.Ver, n.Method = bb[0], bb[1]
	return
}
ParseMethodReply parse method reply.
package statute
import (
	"io"
)
type MethodRequest struct {
	Ver      byte
	NMethods byte
	Methods  []byte  
}
func NewMethodRequest(ver byte, medthods []byte) MethodRequest {
	return MethodRequest{
		ver,
		byte(len(medthods)),
		medthods,
	}
}
func ParseMethodRequest(r io.Reader) (mr MethodRequest, err error) {
	tmp := []byte{0}
	if _, err = r.Read(tmp); err != nil {
		return
	}
	mr.Ver = tmp[0]
	if _, err = r.Read(tmp); err != nil {
		return
	}
	mr.NMethods, mr.Methods = tmp[0], make([]byte, tmp[0])
	_, err = io.ReadAtLeast(r, mr.Methods, int(mr.NMethods))
	return
}
func (sf MethodRequest) Bytes() []byte {
	b := make([]byte, 0, 2+sf.NMethods)
	b = append(b, sf.Ver, sf.NMethods)
	b = append(b, sf.Methods...)
	return b
}
type MethodReply struct {
	Ver    byte
	Method byte
}