示例#1
0
func (o *Object) GetHiddenValue(key string) *Value {
	keyPtr := unsafe.Pointer((*reflect.StringHeader)(unsafe.Pointer(&key)).Data)
	return newValue(o.engine, C.V8_Object_GetHiddenValue(o.self, (*C.char)(keyPtr)))
}
示例#2
0
func (object_ *Object) GetHiddenValue(key string) *Value {
	//keyPtr := unsafe.Pointer((*reflect.StringHeader)(unsafe.Pointer(&key)).Data)
	keyPtr := StringToPointer(key)
	return NewValue(object_.engine, C.V8_Object_GetHiddenValue(object_.self, (*C.char)(keyPtr), C.int(len(key))))
}