Version 3.3.1.2

ArchitectureInfo class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public static class ArchitectureInfo
This class gathers info about the current architecture for the purpose of determinining the unaligned read/write capabilities that we have to work with.
Inheritance
  • System.Object
  • ArchitectureInfo

Fields

Architecture_Supports_All_Unaligned_ReadWrites
This will be false on some ARM architectures, such as ARMv7. In these cases, we will have to perform slower but safer int-by-int read/writes of data.

Since this value will never change at runtime, performance hits from checking this everywhere should hopefully be negligible, since branch prediction from speculative execution will always predict it correctly.

public static bool Architecture_Supports_All_Unaligned_ReadWrites
Architecture_Supports_Unaligned_Float32_Reads
public static bool Architecture_Supports_Unaligned_Float32_Reads