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

Method NewInt64

context.go:321–323  ·  view source on GitHub ↗

NewInt64 returns a int64 value with given int64.

(v int64)

Source from the content-addressed store, hash-verified

319
320// NewInt64 returns a int64 value with given int64.
321func (ctx *Context) NewInt64(v int64) *Value {
322 return &Value{ctx: ctx, ref: C.JS_NewInt64(ctx.ref, C.int64_t(v))}
323}
324
325// Int64 returns a int64 value with given int64.
326// Deprecated: Use NewInt64() instead.

Callers 4

TestContextBasicsFunction · 0.95
marshalMethod · 0.95
Int64Method · 0.95
TestValueConversionsFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestContextBasicsFunction · 0.76
TestValueConversionsFunction · 0.76