| 1002 | } |
| 1003 | |
| 1004 | LUALIB_API int xlua_unpack_float5(void *p, int offset, float *f1, float *f2, float *f3, float *f4, float *f5) { |
| 1005 | CSharpStruct *css = (CSharpStruct *)p; |
| 1006 | if (css->fake_id != -1 || css->len < offset + sizeof(float) * 5) { |
| 1007 | return 0; |
| 1008 | } else { |
| 1009 | float *pos = (float *)(&(css->data[0]) + offset); |
| 1010 | *f1 = pos[0]; |
| 1011 | *f2 = pos[1]; |
| 1012 | *f3 = pos[2]; |
| 1013 | *f4 = pos[3]; |
| 1014 | *f5 = pos[4]; |
| 1015 | return 1; |
| 1016 | } |
| 1017 | } |
| 1018 | |
| 1019 | LUALIB_API int xlua_pack_float6(void *p, int offset, float f1, float f2, float f3, float f4, float f5, float f6) { |
| 1020 | CSharpStruct *css = (CSharpStruct *)p; |
nothing calls this directly
no outgoing calls
no test coverage detected