Kasuromi / GTFO-API

GNU General Public License v3.0
8 stars 7 forks source link

Replace Marshal.SizeOf<T> to Marshal.SizeOf(payload); #39

Closed Flowaria closed 2 years ago

Flowaria commented 2 years ago

https://github.com/Kasuromi/GTFO-API/blob/6326c847eebd11c27c3a1d801e68a2bae99d207b/GTFO-API/API/Impl/NetworkAPI_Impl.cs#L107

image

image

it does identical thing yet Marshal.SizeOf override does not support generic for some reason. Causing exception with generic payload type (even if it's completed)

Flowaria commented 2 years ago

SizeOf can be resolved, but PtrToStructure seems have no alternative Closing this issue