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

Function xlua_pack_decimal

WebGLPlugins/xlua.c:1051–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1049}
1050
1051LUALIB_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
1065typedef struct tagDEC {
1066 uint16_t wReserved;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected