You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 10, 2025. It is now read-only.
The TagReader and TagWriter class still use the naive and legacy method of BitConverter.GetBytes paired with Array.Reverse to get the correct byte-order.
Replace all these method calls with the use of stackalloc spans and employ BinaryPrimitives methods to read/write in the appropriate endian. This will make them free of any heap-allocations in additional to being computationally less expensive.
The
TagReaderandTagWriterclass still use the naive and legacy method ofBitConverter.GetBytespaired withArray.Reverseto get the correct byte-order.Replace all these method calls with the use of
stackallocspans and employBinaryPrimitivesmethods to read/write in the appropriate endian. This will make them free of any heap-allocations in additional to being computationally less expensive.