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

Method ToInt64

value.go:178–182  ·  view source on GitHub ↗

ToInt64 returns the int64 value of the value.

()

Source from the content-addressed store, hash-verified

176
177// ToInt64 returns the int64 value of the value.
178func (v *Value) ToInt64() int64 {
179 val := C.int64_t(0)
180 C.JS_ToInt64(v.ctx.ref, &val, v.ref)
181 return int64(val)
182}
183
184// Deprecated: Use ToInt32 instead.
185func (v *Value) Int32() int32 {

Callers 5

Int64Method · 0.95
LenMethod · 0.80
ByteLenMethod · 0.80
unmarshalMethod · 0.80
TestValueConversionsFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestValueConversionsFunction · 0.64