Esempio n. 1
0
func (o *Object) SetHiddenValue(key string, value *Value) bool {
	keyPtr := unsafe.Pointer((*reflect.StringHeader)(unsafe.Pointer(&key)).Data)
	return C.V8_Object_SetHiddenValue(o.self, (*C.char)(keyPtr), value.self) == 1
}
Esempio n. 2
0
func (object_ *Object) SetHiddenValue(key string, value *Value) bool {
	//keyPtr := unsafe.Pointer((*reflect.StringHeader)(unsafe.Pointer(&key)).Data)
	keyPtr := StringToPointer(key)
	return C.V8_Object_SetHiddenValue(object_.self, (*C.char)(keyPtr), C.int(len(key)), value.self) == 1
}