FastLED 3.10.6
Loading...
Searching...
No Matches
fl::number Class Reference

Detailed Description

Definition at line 50 of file number.h.

#include <number.h>

Public Types

enum class  tag : fl::u8 {
  SIGNED_INT = 0 , UNSIGNED_INT = 1 , FLOAT_60 = 2 , RESERVED_3 = 3 ,
  RESERVED_4 = 4 , RESERVED_5 = 5 , RESERVED_6 = 6 , RESERVED_7 = 7
}
 

Public Member Functions

constexpr number () FL_NO_EXCEPT
 
constexpr number (tag t, fl::u64 payload) FL_NO_EXCEPT
 
fl::i64 as_signed_payload () const FL_NO_EXCEPT
 
constexpr tag get_tag () const FL_NO_EXCEPT
 
constexpr fl::u64 payload () const FL_NO_EXCEPT
 

Static Public Member Functions

static number from_signed (fl::i64 v) FL_NO_EXCEPT
 
static number from_unsigned (fl::u64 v) FL_NO_EXCEPT
 

Public Attributes

fl::u64 raw
 

Static Public Attributes

static constexpr int kPayloadBits = 61
 
static constexpr fl::u64 kPayloadMask = (fl::u64(1) << 61) - 1
 
static constexpr int kTagShift = 61
 

The documentation for this class was generated from the following file: