| 1049 | } |
| 1050 | |
| 1051 | LUALIB_API int xlua_pack_decimal(void *p, int offset, const int * decimal) { |
| 1052 | CSharpStruct *css = (CSharpStruct *)p; |
| 1053 | if (css->fake_id != -1 || css->len < sizeof(int) * 4) { |
| 1054 | return 0; |
| 1055 | } else { |
| 1056 | int *pos = (int *)(&(css->data[0]) + offset); |
| 1057 | pos[0] = decimal[0]; |
| 1058 | pos[1] = decimal[1]; |
| 1059 | pos[2] = decimal[2]; |
| 1060 | pos[3] = decimal[3]; |
| 1061 | return 1; |
| 1062 | } |
| 1063 | } |
| 1064 | |
| 1065 | typedef struct tagDEC { |
| 1066 | uint16_t wReserved; |
nothing calls this directly
no outgoing calls
no test coverage detected