Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Use C# sizeof wherever possible #493

Merged
merged 2 commits into from
Jul 4, 2020
Merged

Use C# sizeof wherever possible #493

merged 2 commits into from
Jul 4, 2020

Commits on Jul 4, 2020

  1. Use C# sizeof wherever possible

    `sizeof(T)` is much faster than `Marshal.SizeOf<T>`, but it can only be safely used when `T` is a blittable type. This means all members are value types and have no `MarshalAs` attribute on them. This rule is recursive for all members.
    
    Closes #475
    AArnott committed Jul 4, 2020
    Configuration menu
    Copy the full SHA
    6f1c921 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a90a500 View commit details
    Browse the repository at this point in the history