找回密码
 register

QQ登录

只需一步,快速开始

查看: 21|回复: 0

[自写引擎] CheckTheSizeOfPacketsUsedStructs 验证网络通信协议中所有使用的数据结构体内存占用大小的调试函数

[复制链接]

[自写引擎] CheckTheSizeOfPacketsUsedStructs 验证网络通信协议中所有使用的数据结构体内存占用大小的调试函数

[复制链接]
  • 打卡等级:热心大叔
  • 打卡总天数:209
  • 打卡月天数:8
  • 打卡总奖励:207
  • 最近打卡:2025-06-08 09:35:45
Waylee

主题

0

回帖

2万

积分

仙帝

积分
21725
Waylee 2025-6-7 18:54 | 显示全部楼层 |阅读模式 | Google Chrome | Windows 10

马上注册,查看网站隐藏内容!!

您需要 登录 才可以下载或查看,没有账号?register

×

085的大小

void CheckTheSizeOfPacketsUsedStructs()
{
  DiskLog("./Log/Debug", "Size check start...");
  DiskLog("./Log/Debug", "Size of _ITEM_GUID = %d.", 8);
  DiskLog("./Log/Debug", "Size of WORLD_POS = %d.", 8);
  DiskLog("./Log/Debug", "Size of PET_GUID_t = %d.", 8);
  DiskLog("./Log/Debug", "Size of _PLAYERSHOP_GUID = %d.", 12);
  DiskLog("./Log/Debug", "Size of FULLUSERDATA = %d.", 50713);
  DiskLog("./Log/Debug", "Size of _OWN_SKILL = %d.", 2);
  DiskLog("./Log/Debug", "Size of _OWN_XINFA = %d.", 4);
  DiskLog("./Log/Debug", "Size of _OWN_MISSION = %d.", 41);
  DiskLog("./Log/Debug", "Size of CGAskStudyXinfa::_STUDYXINFA_INFO = %d.", 6);
  DiskLog("./Log/Debug", "Size of Flag64 = %d.", 8);
  DiskLog("./Log/Debug", "Size of Flag16 = %d.", 2);
  DiskLog("./Log/Debug", "Size of _CITY_GUID = %d.", 4);
  DiskLog("./Log/Debug", "Size of _PET_DB = %d.", 399);
  DiskLog("./Log/Debug", "Size of SERVER_COMMAND = %d.", 344);
  DiskLog("./Log/Debug", "Size of X_SCRIPT = %d.", 96);
  DiskLog("./Log/Debug", "Size of CG_FINGER = %d.", 44);
  DiskLog("./Log/Debug", "Size of MAIL = %d.", 356);
  DiskLog("./Log/Debug", "Size of CG_MINORPASSWD = %d.", 37);
  DiskLog("./Log/Debug", "Size of _OWN_SETTING = %d.", 5);
  DiskLog("./Log/Debug", "Size of CG_RELATION = %d.", 44);
  DiskLog("./Log/Debug", "Size of _PCGTEST = %d.", 92);
  DiskLog("./Log/Debug", "Size of GCBBSMessages::_MESSAGE_T = %d.", 652);
  DiskLog("./Log/Debug", "Size of GCAbilityTeacherInfo::_AbilityTeacherInfo = %d.", 28);
  DiskLog("./Log/Debug", "Size of BasicUIInfo = %d.", 124);
  DiskLog("./Log/Debug", "Size of GCCharImpactListUpdate::ImpactStruct_T = %d.", 12);
  DiskLog("./Log/Debug", "Size of GCDetailImpactListUpdate::ImpactStruct_T = %d.", 16);
  DiskLog("./Log/Debug", "Size of CityBuilding_t = %d.", 2112);
  DiskLog("./Log/Debug", "Size of Cooldown_T = %d.", 12);
  DiskLog("./Log/Debug", "Size of _OWN_ABILITY = %d.", 8);
  DiskLog("./Log/Debug", "Size of GC_FINGER = %d.", 1176);
  DiskLog("./Log/Debug", "Size of _GUILD_RETURN = %d.", 240);
  DiskLog("./Log/Debug", "Size of GCItemList::_MSG_ITEM = %d.", 384);
  DiskLog("./Log/Debug", "Size of MAIL_LIST = %d.", 7124);
  DiskLog("./Log/Debug", "Size of GCMerchandiseList::_MERCHANDISE_ITEM = %d.", 8);
  DiskLog("./Log/Debug", "Size of GC_MINORPASSWD = %d.", 8);
  DiskLog("./Log/Debug", "Size of _MISSION_LIST = %d.", 3381);
  DiskLog("./Log/Debug", "Size of _BAG_ITEM = %d.", 20);
  DiskLog("./Log/Debug", "Size of EQUIP_LIST = %d.", 12);
  DiskLog("./Log/Debug", "Size of _PET_PLACARD_ITEM = %d.", 440);
  DiskLog("./Log/Debug", "Size of _PET_DETAIL_ATTRIB = %d.", 296);
  DiskLog("./Log/Debug", "Size of SHOP_INFO_t = %d.", 248);
  DiskLog("./Log/Debug", "Size of GCPlayerShopRecordList::MessageEntry_t = %d.", 128);
  DiskLog("./Log/Debug", "Size of GCPlayerShopUpdatePartners::MsgPartner_t = %d.", 36);
  DiskLog("./Log/Debug", "Size of GC_RELATION = %d.", 4280);
  DiskLog("./Log/Debug", "Size of GCShopMerchandiseList::_MERCHANDISE_ITEM = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCShopRepair::REPAIRED_ITEM = %d.", 8);
  DiskLog("./Log/Debug", "Size of GCShopSoldList::_MERCHANDISE_ITEM = %d.", 180);
  DiskLog("./Log/Debug", "Size of GCShopUpdateMerchandiseList::_MERCHANDISE_ITEM = %d.", 8);
  DiskLog("./Log/Debug", "Size of ObjID_List = %d.", 2052);
  DiskLog("./Log/Debug", "Size of GCStallOpen::_STALL_ITEM = %d.", 196);
  DiskLog("./Log/Debug", "Size of GCStudyXinfa::_STUDERESULT_INFO = %d.", 12);
  DiskLog("./Log/Debug", "Size of GCTargetListAndHitFlags::HitFlagList_T = %d.", 9);
  DiskLog("./Log/Debug", "Size of GCTeamAskInvite::InviterInfo = %d.", 128);
  DiskLog("./Log/Debug", "Size of TEAM_LIST_ENTRY = %d.", 52);
  DiskLog("./Log/Debug", "Size of _PGCTEST = %d.", 80);
  DiskLog("./Log/Debug", "Size of X_PARAM = %d.", 612);
  DiskLog("./Log/Debug", "Size of BATCH_MAIL = %d.", 3408);
  DiskLog("./Log/Debug", "Size of _CALLOF_INFO = %d.", 20);
  DiskLog("./Log/Debug", "Size of GW_FINGER = %d.", 48);
  DiskLog("./Log/Debug", "Size of GW_RELATION = %d.", 48);
  DiskLog("./Log/Debug", "Size of IRollBackData_t = %d.", 2);
  DiskLog("./Log/Debug", "Size of DB_CHAR_BASE_INFO = %d.", 292);
  DiskLog("./Log/Debug", "Size of WG_FINGER = %d.", 1180);
  DiskLog("./Log/Debug", "Size of WG_RELATION = %d.", 3208);
  DiskLog("./Log/Debug", "Size of SCENE_INIT_DATA = %d.", 38308);
  DiskLog("./Log/Debug", "Size of WGTeamAskInvite::InviterInfo = %d.", 56);
  DiskLog("./Log/Debug", "Size of CGAutoMoveItemFromBagToPlayerShop_t = %d.", 16);
  DiskLog("./Log/Debug", "Size of CGAutoMovePetFromBagToPlayerShop_t = %d.", 16);
  DiskLog("./Log/Debug", "Size of CGAutoMoveItemFromPlayerShopToBag_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of CGAutoMovePetFromPlayerShopToBag_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of CGManuMoveItemFromBagToPlayerShop_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of CGManuMoveItemFromPlayerShopToBag_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of CGManuMoveItemFromPlayerShopToPlayerShop_t = %d.", 28);
  DiskLog("./Log/Debug", "Size of GCMoveItemFromBagToPlayerShop_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCMovePetFromBagToPlayerShop_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCMoveItemFromPlayerShopToBag_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCMovePetFromPlayerShopToBag_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCMoveItemFromPlayerShopToPlayerShop_t = %d.", 28);
  DiskLog("./Log/Debug", "Size of GCExchangeItemFromBagToPlayerShop_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCExchangeItemFromPlayerShopToBag_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCExchangeItemFromPlayerShopToPlayerShop_t = %d.", 28);
  DiskLog("./Log/Debug", "Size of GCPlayerShopItemListForSelf_t = %d.", 188);
  DiskLog("./Log/Debug", "Size of GCPlayerShopItemListEachItemForSelf_t = %d.", 12);
  DiskLog("./Log/Debug", "Size of GCPlayerShopItemListEachSerialForSelf_t = %d.", 2);
  DiskLog("./Log/Debug", "Size of GCPlayerShopPetListForSelf_t = %d.", 1);
  DiskLog("./Log/Debug", "Size of GCPlayerShopItemListForOther_t = %d.", 176);
  DiskLog("./Log/Debug", "Size of GCPlayerShopItemListEachItemForOther_t = %d.", 12);
  DiskLog("./Log/Debug", "Size of GCPlayerShopPetListForOther_t = %d.", 1);
  DiskLog("./Log/Debug", "Size of GCExchangePetView_t = %d.", 1);
  DiskLog("./Log/Debug", "Size of GCPlayerShopPetView_t = %d.", 16);
  DiskLog("./Log/Debug", "Size of GCStallPetView_t = %d.", 12);
  DiskLog("./Log/Debug", "Size of WGCResult_t = %d.", 12);
  DiskLog("./Log/Debug", "Size of CGWCityApply_t = %d.", 40);
  DiskLog("./Log/Debug", "Size of WGCGuildBaseAttr_t = %d.", 104);
  DiskLog("./Log/Debug", "Size of WGCCityBuildingOpt_t = %d.", 216);
  DiskLog("./Log/Debug", "Size of WGCCityResearchInfo_t = %d.", 36);
  DiskLog("./Log/Debug", "Size of WGCCityResearchOpt_t = %d.", 412);
  DiskLog("./Log/Debug", "Size of CGWCitySixRate_t = %d.", 28);
  DiskLog("./Log/Debug", "Size of CGWCityAskInfo_t = %d.", 4);
  DiskLog("./Log/Debug", "Size of CGWCityOpt_t = %d.", 52);
  DiskLog("./Log/Debug", "Size check end...");
}

源端引擎的大小:

__int64 CheckTheSizeOfPacketsUsedStructs(void)
{
  DiskLog("./Log/Debug", "Size check start...");
  DiskLog("./Log/Debug", "Size of _ITEM_GUID = %d.", 8);
  DiskLog("./Log/Debug", "Size of WORLD_POS = %d.", 8);
  DiskLog("./Log/Debug", "Size of PET_GUID_t = %d.", 8);
  DiskLog("./Log/Debug", "Size of _PLAYERSHOP_GUID = %d.", 12);
  DiskLog("./Log/Debug", "Size of FULLUSERDATA = %d.", 185323);
  DiskLog("./Log/Debug", "Size of _OWN_SKILL = %d.", 4);
  DiskLog("./Log/Debug", "Size of _OWN_XINFA = %d.", 8);
  DiskLog("./Log/Debug", "Size of _OWN_MISSION = %d.", 41);
  DiskLog("./Log/Debug", "Size of CGAskStudyXinfa::_STUDYXINFA_INFO = %d.", 6);
  DiskLog("./Log/Debug", "Size of Flag64 = %d.", 8);
  DiskLog("./Log/Debug", "Size of Flag16 = %d.", 2);
  DiskLog("./Log/Debug", "Size of _PET_DB = %d.", 2233);
  DiskLog("./Log/Debug", "Size of SERVER_COMMAND = %d.", 44);
  DiskLog("./Log/Debug", "Size of X_SCRIPT = %d.", 132);
  DiskLog("./Log/Debug", "Size of CG_FINGER = %d.", 44);
  DiskLog("./Log/Debug", "Size of MAIL = %d.", 360);
  DiskLog("./Log/Debug", "Size of CG_MINORPASSWD = %d.", 37);
  DiskLog("./Log/Debug", "Size of _OWN_SETTING = %d.", 5);
  DiskLog("./Log/Debug", "Size of CG_RELATION = %d.", 48);
  DiskLog("./Log/Debug", "Size of GCBBSMessages::_MESSAGE_T = %d.", 564);
  DiskLog("./Log/Debug", "Size of GCAbilityTeacherInfo::_AbilityTeacherInfo = %d.", 28);
  DiskLog("./Log/Debug", "Size of BasicUIInfo = %d.", 148);
  DiskLog("./Log/Debug", "Size of GCCharImpactListUpdate::ImpactStruct_T = %d.", 12);
  DiskLog("./Log/Debug", "Size of GCDetailImpactListUpdate::ImpactStruct_T = %d.", 20);
  DiskLog("./Log/Debug", "Size of CityBuilding_t = %d.", 2112);
  DiskLog("./Log/Debug", "Size of Cooldown_T = %d.", 12);
  DiskLog("./Log/Debug", "Size of _OWN_ABILITY = %d.", 8);
  DiskLog("./Log/Debug", "Size of GC_FINGER = %d.", 1176);
  DiskLog("./Log/Debug", "Size of _GUILD_RETURN = %d.", 240);
  DiskLog("./Log/Debug", "Size of GCItemList::_MSG_ITEM = %d.", 388);
  DiskLog("./Log/Debug", "Size of MAIL_LIST = %d.", 7204);
  DiskLog("./Log/Debug", "Size of GC_MINORPASSWD = %d.", 8);
  DiskLog("./Log/Debug", "Size of _MISSION_LIST = %d.", 5301);
  DiskLog("./Log/Debug", "Size of GCMyBagList::_BAG_ITEM = %d.", 20);
  DiskLog("./Log/Debug", "Size of EQUIP_LIST = %d.", 12);
  DiskLog("./Log/Debug", "Size of _PET_PLACARD_ITEM = %d.", 464);
  DiskLog("./Log/Debug", "Size of _PET_DETAIL_ATTRIB = %d.", 320);
  DiskLog("./Log/Debug", "Size of SHOP_INFO_t = %d.", 256);
  DiskLog("./Log/Debug", "Size of GCPlayerShopRecordList::MessageEntry_t = %d.", 128);
  DiskLog("./Log/Debug", "Size of GCPlayerShopUpdatePartners::MsgPartner_t = %d.", 36);
  DiskLog("./Log/Debug", "Size of GC_RELATION = %d.", 7924);
  DiskLog("./Log/Debug", "Size of GCShopMerchandiseList::_MERCHANDISE_ITEM = %d.", 28);
  DiskLog("./Log/Debug", "Size of GCShopRepair::REPAIRED_ITEM = %d.", 8);
  DiskLog("./Log/Debug", "Size of GCShopSoldList::_MERCHANDISE_ITEM = %d.", 184);
  DiskLog("./Log/Debug", "Size of GCShopUpdateMerchandiseList::_MERCHANDISE_ITEM = %d.", 8);
  DiskLog("./Log/Debug", "Size of ObjID_List = %d.", 2052);
  DiskLog("./Log/Debug", "Size of GCStallOpen::_STALL_ITEM = %d.", 200);
  DiskLog("./Log/Debug", "Size of GCStudyXinfa::_STUDERESULT_INFO = %d.", 12);
  DiskLog("./Log/Debug", "Size of GCTargetListAndHitFlags::HitFlagList_T = %d.", 9);
  DiskLog("./Log/Debug", "Size of GCTeamAskInvite::InviterInfo = %d.", 196);
  DiskLog("./Log/Debug", "Size of TEAM_LIST_ENTRY = %d.", 60);
  DiskLog("./Log/Debug", "Size of _PGCTEST = %d.", 80);
  DiskLog("./Log/Debug", "Size of X_PARAM = %d.", 612);
  DiskLog("./Log/Debug", "Size of BATCH_MAIL = %d.", 3408);
  DiskLog("./Log/Debug", "Size of _CALLOF_INFO = %d.", 20);
  DiskLog("./Log/Debug", "Size of GW_FINGER = %d.", 48);
  DiskLog("./Log/Debug", "Size of GW_RELATION = %d.", 52);
  DiskLog("./Log/Debug", "Size of DB_CHAR_BASE_INFO = %d.", 320);
  DiskLog("./Log/Debug", "Size of WG_FINGER = %d.", 1180);
  DiskLog("./Log/Debug", "Size of WG_RELATION = %d.", 3528);
  DiskLog("./Log/Debug", "Size of SCENE_INIT_DATA = %d.", 38340);
  DiskLog("./Log/Debug", "Size of WGTeamAskInvite::InviterInfo = %d.", 56);
  DiskLog("./Log/Debug", "Size of CGAutoMoveItemFromBagToPlayerShop_t = %d.", 16);
  DiskLog("./Log/Debug", "Size of CGAutoMovePetFromBagToPlayerShop_t = %d.", 16);
  DiskLog("./Log/Debug", "Size of CGAutoMoveItemFromPlayerShopToBag_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of CGAutoMovePetFromPlayerShopToBag_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of CGManuMoveItemFromBagToPlayerShop_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of CGManuMoveItemFromPlayerShopToBag_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of CGManuMoveItemFromPlayerShopToPlayerShop_t = %d.", 28);
  DiskLog("./Log/Debug", "Size of GCMoveItemFromBagToPlayerShop_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCMovePetFromBagToPlayerShop_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCMoveItemFromPlayerShopToBag_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCMovePetFromPlayerShopToBag_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCMoveItemFromPlayerShopToPlayerShop_t = %d.", 28);
  DiskLog("./Log/Debug", "Size of GCExchangeItemFromBagToPlayerShop_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCExchangeItemFromPlayerShopToBag_t = %d.", 24);
  DiskLog("./Log/Debug", "Size of GCExchangeItemFromPlayerShopToPlayerShop_t = %d.", 28);
  DiskLog("./Log/Debug", "Size of GCPlayerShopItemListForSelf_t = %d.", 200);
  DiskLog("./Log/Debug", "Size of GCPlayerShopItemListEachItemForSelf_t = %d.", 12);
  DiskLog("./Log/Debug", "Size of GCPlayerShopItemListEachSerialForSelf_t = %d.", 2);
  DiskLog("./Log/Debug", "Size of GCPlayerShopPetListForSelf_t = %d.", 1);
  DiskLog("./Log/Debug", "Size of GCPlayerShopItemListForOther_t = %d.", 184);
  DiskLog("./Log/Debug", "Size of GCPlayerShopItemListEachItemForOther_t = %d.", 12);
  DiskLog("./Log/Debug", "Size of GCPlayerShopPetListForOther_t = %d.", 1);
  DiskLog("./Log/Debug", "Size of GCExchangePetView_t = %d.", 1);
  DiskLog("./Log/Debug", "Size of GCPlayerShopPetView_t = %d.", 16);
  DiskLog("./Log/Debug", "Size of GCStallPetView_t = %d.", 12);
  DiskLog("./Log/Debug", "Size of WGCResult_t = %d.", 12);
  DiskLog("./Log/Debug", "Size of CGWCityApply_t = %d.", 40);
  DiskLog("./Log/Debug", "Size of WGCGuildBaseAttr_t = %d.", 104);
  DiskLog("./Log/Debug", "Size of WGCCityBuildingOpt_t = %d.", 216);
  DiskLog("./Log/Debug", "Size of WGCCityResearchInfo_t = %d.", 36);
  DiskLog("./Log/Debug", "Size of WGCCityResearchOpt_t = %d.", 412);
  DiskLog("./Log/Debug", "Size of CGWCitySixRate_t = %d.", 28);
  DiskLog("./Log/Debug", "Size of CGWCityAskInfo_t = %d.", 4);
  DiskLog("./Log/Debug", "Size of CGWCityOpt_t = %d.", 52);
  return DiskLog("./Log/Debug", "Size check end...");
}

085内存地址
***付费内容***

付费看帖
剩余 2% 内容需要支付 50.00 金币 后可完整阅读
支持付费阅读,激励作者创作更好的作品。
您需要登录后才可以回帖 登录 | register

本版积分规则

雪舞知识库 | 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 |网站地图|天天打卡

GMT+8, 2025-6-8 20:04 , Processed in 0.108383 second(s), 5 queries , Redis On.

Powered by XueWu Licensed

Copyright © Tencent Cloud.

快速回复 返回顶部 返回列表