MCPcopy Create free account
hub / github.com/buke/quickjs-go / ToUint32

Method ToUint32

value.go:202–206  ·  view source on GitHub ↗

ToUint32 returns the uint32 value of the value.

()

Source from the content-addressed store, hash-verified

200
201// ToUint32 returns the uint32 value of the value.
202func (v *Value) ToUint32() uint32 {
203 val := C.uint32_t(0)
204 C.JS_ToUint32(v.ctx.ref, &val, v.ref)
205 return uint32(val)
206}
207
208// Deprecated: Use ToFloat64 instead.
209func (v *Value) Float64() float64 {

Callers 3

Uint32Method · 0.95
unmarshalMethod · 0.80
TestValueConversionsFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestValueConversionsFunction · 0.64