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

Method GetInt64

value.go:733–738  ·  view source on GitHub ↗

GetInt64 gets a property by int64 key.

(idx int64)

Source from the content-addressed store, hash-verified

731
732// GetInt64 gets a property by int64 key.
733func (v *Value) GetInt64(idx int64) *Value {
734 if !v.hasValidContext() {
735 return nil
736 }
737 return &Value{ctx: v.ctx, ref: C.JS_GetPropertyInt64(v.ctx.ref, v.ref, C.int64_t(idx))}
738}
739
740// SetInt64 sets a property by int64 key.
741func (v *Value) SetInt64(idx int64, val *Value) bool {

Calls 1

hasValidContextMethod · 0.95