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

Function xlua_unpack_float6

WebGLPlugins/xlua.c:1035–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1033}
1034
1035LUALIB_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
1051LUALIB_API int xlua_pack_decimal(void *p, int offset, const int * decimal) {
1052 CSharpStruct *css = (CSharpStruct *)p;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected