| 1033 | } |
| 1034 | |
| 1035 | LUALIB_API int xlua_unpack_float6(void *p, int offset, float *f1, float *f2, float *f3, float *f4, float *f5, float *f6) { |
| 1036 | CSharpStruct *css = (CSharpStruct *)p; |
| 1037 | if (css->fake_id != -1 || css->len < offset + sizeof(float) * 6) { |
| 1038 | return 0; |
| 1039 | } else { |
| 1040 | float *pos = (float *)(&(css->data[0]) + offset); |
| 1041 | *f1 = pos[0]; |
| 1042 | *f2 = pos[1]; |
| 1043 | *f3 = pos[2]; |
| 1044 | *f4 = pos[3]; |
| 1045 | *f5 = pos[4]; |
| 1046 | *f6 = pos[5]; |
| 1047 | return 1; |
| 1048 | } |
| 1049 | } |
| 1050 | |
| 1051 | LUALIB_API int xlua_pack_decimal(void *p, int offset, const int * decimal) { |
| 1052 | CSharpStruct *css = (CSharpStruct *)p; |
nothing calls this directly
no outgoing calls
no test coverage detected