Files
GaCy-GO/tools/cw_protobuf_serializer_handle.lua
2026-10-28 18:54:43 +07:00

8 lines
707 B
Lua

-- Exact protobuf serializer metadata; no serialization/gameplay invocation.
do local function capture()
if _G.__gacCwProtoSerializeHandle1 then return end;_G.__gacCwProtoSerializeHandle1=true
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local ms=typeof(CS.Google.Protobuf.MessageExtensions):GetMethods(flags)
for i=0,math.min(ms.Length-1,127)do local m=ms[i];if m.Name=='ToByteArray'and m:GetParameters().Length==1 then CS.UnityEngine.Debug.Log('[GAC_CW_PROTO_SERIALIZER] '..tostring(m)..' HANDLE '..tostring(m.MethodHandle.Value))end end
end;local ok,e=pcall(capture);if not ok then CS.UnityEngine.Debug.Log('[GAC_CW_PROTO_SERIALIZER] ERROR '..tostring(e))end end