func (d *Decoder) BytesParsed() int {
	return d.n
}
BytesParsed returns the number of bytes that have actually been parsed
package bencode
import (
	"bufio"
	"bytes"
	"encoding"
	"errors"
	"fmt"
	"io"
	"reflect"
	"strconv"
	"strings"
)
var (
	reflectByteSliceType = reflect.TypeOf([]byte(nil))
	reflectStringType    = reflect.TypeOf("")
)
type Unmarshaler interface {
	UnmarshalBencode([]byte) error
}
type Decoder struct {
	r             *bufio.Reader
	raw           bool
	buf           []byte
	n             int
	failUnordered bool
}
func (d *Decoder) SetFailOnUnorderedKeys(fail bool) {
	d.failUnordered = fail
}