| library fidl.test.consts; |
| |
| const bool ENABLED_FLAG = true; |
| const int8 OFFSET = -33; |
| const uint16 ANSWER = 42; |
| const uint16 ANSWER_IN_BINARY = 0b101010; |
| const uint32 POPULATION_USA_2018 = 330000000; |
| const uint64 DIAMOND = 0x183c7effff7e3c18; |
| const uint64 FUCHSIA = 4054509061583223046; |
| const string USERNAME = "\"squeenze\""; |
| const float32 MIN_TEMP = -273.15; |
| const float64 CONVERSION_FACTOR = 1.41421358; |
| |
| enum EnumType : int32 { |
| VALUE = 1; |
| true = 2; |
| }; |
| const EnumType enumVal = EnumType.VALUE; |
| const int32 enumPrimitiveVal = EnumType.VALUE; |
| const EnumType enumTrue = EnumType.true; |
| const int32 enumPrimitiveTrue = EnumType.true; |
| |
| bits BitsType : uint32 { |
| VALUE = 0x00000001; |
| true = 2; |
| }; |
| const BitsType bitsVal = BitsType.VALUE; |
| const int32 bitsPrimitiveVal = BitsType.VALUE; |
| const BitsType bitsTrue = BitsType.true; |
| const int32 bitsPrimitiveTrue = BitsType.true; |