func (a MatchAlgorithm) verify() error {
	if _, ok := maStrings[a]; !ok {
		return errUnsupportedMatchAlgorithm
	}
	return nil
}
verify checks whether the matcher value is supported.
package lzma
import "errors"
type MatchAlgorithm byte
const (
	HashTable4 MatchAlgorithm = iota
	BinaryTree
)
var maStrings = map[MatchAlgorithm]string{
	HashTable4: "HashTable4",
	BinaryTree: "BinaryTree",
}
func (a MatchAlgorithm) String() string {
	if s, ok := maStrings[a]; ok {
		return s
	}
	return "unknown"
}
var errUnsupportedMatchAlgorithm = errors.New(
	"lzma: unsupported match algorithm value")