11 _ Unmarshaler = (*Bytes)(nil)
12 _ Marshaler = (*Bytes)(nil)
16 func (me *Bytes) UnmarshalBencode(b []byte) error {
17 *me = append([]byte(nil), b...)
21 func (me Bytes) MarshalBencode() ([]byte, error) {
23 return nil, errors.New("marshalled Bytes should not be zero-length")
28 func (me Bytes) GoString() string {
29 return fmt.Sprintf("bencode.Bytes(%q)", []byte(me))