reflect.Value.Bytes (method)
27 uses
reflect (current package)
deepequal.go#L110: return bytealg.Equal(v1.Bytes(), v2.Bytes())
value.go#L290: func (v Value) Bytes() []byte {
value.go#L3339: 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/json
encode.go#L839: s := v.Bytes()
encoding/xml
marshal.go#L777: bytes = val.Slice(0, val.Len()).Bytes()
marshal.go#L788: return "", val.Bytes(), nil
marshal.go#L913: b := vf.Bytes()
fmt
print.go#L829: bytes = f.Bytes()
print.go#L831: bytes = f.Slice(0, f.Len()).Bytes()
github.com/go-pg/pg/v10/types
append_value.go#L167: return AppendBytes(b, v.Bytes(), flags)
append_value.go#L172: return AppendBytes(b, v.Slice(0, v.Len()).Bytes(), flags)
append_value.go#L231: return AppendString(b, internal.BytesToString(v.Bytes()), flags)
scan_value.go#L352: b := v.Slice(0, v.Len()).Bytes()
github.com/go-pg/zerochecker
zerochecker.go#L115: b := v.Slice(0, v.Len()).Bytes()
github.com/google/go-cmp/cmp
report_reflect.go#L216: b := v.Bytes()
report_slices.go#L108: sx, sy = string(vx.Bytes()), string(vy.Bytes())
github.com/vmihailenco/msgpack/v5
decode_string.go#L163: b, err := d.bytes(c, v.Bytes())
decode_string.go#L190: b := v.Slice(0, n).Bytes()
encode_slice.go#L17: return e.EncodeBytes(v.Bytes())
encode_slice.go#L26: b := v.Slice(0, v.Len()).Bytes()
google.golang.org/protobuf/internal/impl
codec_map.go#L365: dstm.SetMapIndex(iter.Key(), reflect.ValueOf(append(emptyBuf[:], iter.Value().Bytes()...)))
convert.go#L356: return protoreflect.ValueOfBytes(v.Convert(bytesType).Bytes())