unto
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
which shouldn't be that bad if you think about it
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
well I still can use implicit offsets and retreive those by reflection
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
so basically "packed"
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
is it aligned?
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
okay but what if a field is, say byte sized
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
what about
FieldDefinition.GetOffset
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
sucks even more
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
well that just sucks, can I get an adress of a field using attributes?
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
can I get an address of a field using reflection?
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
we take the address of its field and that's it, we have the offset
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
so we have a null pointer to a structure
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
allow me to describe it in the way it's done in C's offsetof and lets figure out how to do it using reflection
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
okay so pointer fuckery can do the thing right?
105 replies
SSilk.NET
•Created by TechPizza on 5/9/2022 in #general-offtopic
offsetof magic
so a hack program (jk lmao a pipeline) that is
105 replies