func TstDecode(r io.Reader) func(v reflect.Value) (int, error) {
	dec := NewDecoder(r)
	return dec.decode
}
TstDecode creates a new Decoder for the passed reader and returns the
internal decode function on the Decoder.
package xdr
import (
	"io"
	"reflect"
)
func TstEncode(w io.Writer) func(v reflect.Value) (int, error) {
	enc := NewEncoder(w)
	return enc.encode
}