ToInt64 returns the int64 value of the value.
()
| 176 | |
| 177 | // ToInt64 returns the int64 value of the value. |
| 178 | func (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. |
| 185 | func (v *Value) Int32() int32 { |
no outgoing calls