Lines Matching defs:R
79 orc_rt_CWrapperFunctionResultInit(orc_rt_CWrapperFunctionResult *R) {
80 R->Size = 0;
81 R->Data.ValuePtr = 0;
90 orc_rt_CWrapperFunctionResult R;
91 R.Size = Size;
93 R.Data.ValuePtr = 0;
94 if (Size > sizeof(R.Data.Value))
95 R.Data.ValuePtr = (char *)malloc(Size);
96 return R;
104 orc_rt_CWrapperFunctionResult R;
105 R.Size = Size;
106 if (R.Size > sizeof(R.Data.Value)) {
109 R.Data.ValuePtr = Tmp;
111 memcpy(R.Data.Value, Data, Size);
112 return R;
137 orc_rt_CWrapperFunctionResult R;
138 R.Size = 0;
141 R.Data.ValuePtr = Tmp;
142 return R;
150 orc_rt_DisposeCWrapperFunctionResult(orc_rt_CWrapperFunctionResult *R) {
151 if (R->Size > sizeof(R->Data.Value) ||
152 (R->Size == 0 && R->Data.ValuePtr))
153 free(R->Data.ValuePtr);
161 orc_rt_CWrapperFunctionResultData(orc_rt_CWrapperFunctionResult *R) {
162 assert((R->Size != 0 || R->Data.ValuePtr == NULL) &&
164 return R->Size > sizeof(R->Data.Value) ? R->Data.ValuePtr : R->Data.Value;
173 orc_rt_CWrapperFunctionResultSize(const orc_rt_CWrapperFunctionResult *R) {
174 assert((R->Size != 0 || R->Data.ValuePtr == NULL) &&
176 return R->Size;
184 orc_rt_CWrapperFunctionResultEmpty(const orc_rt_CWrapperFunctionResult *R) {
185 return R->Size == 0 && R->Data.ValuePtr == 0;
196 const orc_rt_CWrapperFunctionResult *R) {
197 return R->Size == 0 ? R->Data.ValuePtr : 0;