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))) }
func SetData(dataRef DataRef, value []byte) { C.XPLMSetDatab(C.XPLMDataRef(dataRef), unsafe.Pointer(&value[0]), 0, C.int(len(value))) }