Esempio n. 1
0
func SetString(dataRef DataRef, value string) {
	cValue := C.CString(value)
	defer C.free(unsafe.Pointer(cValue))
	C.XPLMSetDatab(C.XPLMDataRef(dataRef), unsafe.Pointer(cValue), 0, C.int(C.strlen(cValue)))
}
Esempio n. 2
0
func SetData(dataRef DataRef, value []byte) {
	C.XPLMSetDatab(C.XPLMDataRef(dataRef), unsafe.Pointer(&value[0]), 0, C.int(len(value)))
}