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

Method ToInt32

value.go:190–194  ·  view source on GitHub ↗

ToInt32 returns the int32 value of the value.

()

Source from the content-addressed store, hash-verified

188
189// ToInt32 returns the int32 value of the value.
190func (v *Value) ToInt32() int32 {
191 val := C.int32_t(0)
192 C.JS_ToInt32(v.ctx.ref, &val, v.ref)
193 return int32(val)
194}
195
196// Deprecated: Use ToUint32 instead.
197func (v *Value) Uint32() uint32 {

Callers 15

Int32Method · 0.95
TestContextEvaluationFunction · 0.80
TestContextPromiseFunction · 0.80
TestContextSchedulerFunction · 0.80
TestContextTypedArraysFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestContextEvaluationFunction · 0.64
TestContextPromiseFunction · 0.64
TestContextSchedulerFunction · 0.64
TestContextTypedArraysFunction · 0.64
TestReflectionEdgeCasesFunction · 0.64