google.golang.org/protobuf/reflect/protoreflect.value.num (field)
20 uses
google.golang.org/protobuf/reflect/protoreflect (current package)
value_union.go#L98: return Value{typ: boolType, num: 1}
value_union.go#L100: return Value{typ: boolType, num: 0}
value_union.go#L106: return Value{typ: int32Type, num: uint64(v)}
value_union.go#L111: return Value{typ: int64Type, num: uint64(v)}
value_union.go#L116: return Value{typ: uint32Type, num: uint64(v)}
value_union.go#L121: return Value{typ: uint64Type, num: v}
value_union.go#L126: return Value{typ: float32Type, num: uint64(math.Float64bits(float64(v)))}
value_union.go#L131: return Value{typ: float64Type, num: uint64(math.Float64bits(float64(v)))}
value_union.go#L146: return Value{typ: enumType, num: uint64(v)}
value_union.go#L247: return v.num > 0
value_union.go#L257: return int64(v.num)
value_union.go#L267: return uint64(v.num)
value_union.go#L277: return math.Float64frombits(uint64(v.num))
value_union.go#L308: return EnumNumber(v.num)
value_unsafe.go#L71: num uint64 // 8B
value_unsafe.go#L76: return Value{typ: stringType, ptr: p.Data, num: uint64(len(v))}
value_unsafe.go#L80: return Value{typ: bytesType, ptr: p.Data, num: uint64(len(v))}
value_unsafe.go#L88: *(*stringHeader)(unsafe.Pointer(&x)) = stringHeader{Data: v.ptr, Len: int(v.num)}
value_unsafe.go#L92: *(*sliceHeader)(unsafe.Pointer(&x)) = sliceHeader{Data: v.ptr, Len: int(v.num), Cap: int(v.num)}
 |
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. |