reflect.Value.Bytes (method)
20 uses
reflect (current package)
value.go#L288: func (v Value) Bytes() []byte {
value.go#L2702: return makeString(v.flag.ro(), string(v.Bytes()), t)
database/sql/driver
types.go#L283: return rv.Bytes(), nil
encoding/asn1
marshal.go#L508: bytes := s.Bytes()
marshal.go#L538: return bytesEncoder(v.Bytes()), nil
encoding/gob
decode.go#L381: if _, err := state.b.Read(value.Bytes()); err != nil {
encode.go#L241: b := v.Bytes()
encoding/json
encode.go#L838: s := v.Bytes()
encoding/xml
marshal.go#L773: bytes = val.Slice(0, val.Len()).Bytes()
marshal.go#L784: return "", val.Bytes(), nil
marshal.go#L909: b := vf.Bytes()
fmt
print.go#L829: bytes = f.Bytes()
print.go#L831: bytes = f.Slice(0, f.Len()).Bytes()
github.com/google/go-cmp/cmp
report_reflect.go#L209: b := v.Bytes()
report_slices.go#L89: sx, sy = string(vx.Bytes()), string(vy.Bytes())
github.com/jackc/pgtype
convert.go#L102: convVal := refVal.Bytes()
golang.org/x/crypto/ssh
messages.go#L541: out = append(out, field.Bytes()...)
google.golang.org/protobuf/internal/impl
codec_map.go#L366: dstm.SetMapIndex(iter.Key(), reflect.ValueOf(append(emptyBuf[:], iter.Value().Bytes()...)))
convert.go#L356: return pref.ValueOfBytes(v.Convert(bytesType).Bytes())
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |