MCPcopy Create free account
hub / github.com/Tencent/xLua / xlua_unpack_float5

Function xlua_unpack_float5

WebGLPlugins/xlua.c:1004–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1002}
1003
1004LUALIB_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
1019LUALIB_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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected