Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
v8::CTypeInfo Class Reference

#include <v8-fast-api-calls.h>

Public Types

enum class  Type : uint8_t {
  kVoid , kBool , kUint8 , kInt32 ,
  kUint32 , kInt64 , kUint64 , kFloat32 ,
  kFloat64 , kPointer , kV8Value , kSeqOneByteString ,
  kApiObject , kAny
}
 
enum class  SequenceType : uint8_t { kScalar , kIsSequence , kIsTypedArray , kIsArrayBuffer }
 
enum class  Flags : uint8_t {
  kNone = 0 , kAllowSharedBit = 1 << 0 , kEnforceRangeBit = 1 << 1 , kClampBit = 1 << 2 ,
  kIsRestrictedBit = 1 << 3
}
 
typedef uint32_t Identifier
 

Public Member Functions

constexpr CTypeInfo (Type type, SequenceType sequence_type=SequenceType::kScalar, Flags flags=Flags::kNone)
 
constexpr CTypeInfo (Identifier identifier)
 
constexpr Identifier GetId () const
 
constexpr Type GetType () const
 
constexpr SequenceType GetSequenceType () const
 
constexpr Flags GetFlags () const
 

Static Public Member Functions

static constexpr bool IsIntegralType (Type type)
 
static constexpr bool IsFloatingPointType (Type type)
 
static constexpr bool IsPrimitive (Type type)
 

Static Public Attributes

static constexpr Type kCallbackOptionsType = Type(255)
 

Member Typedef Documentation

◆ Identifier

typedef uint32_t v8::CTypeInfo::Identifier

Member Enumeration Documentation

◆ Flags

enum class v8::CTypeInfo::Flags : uint8_t
strong
Enumerator
kNone 
kAllowSharedBit 
kEnforceRangeBit 
kClampBit 
kIsRestrictedBit 

◆ SequenceType

enum class v8::CTypeInfo::SequenceType : uint8_t
strong
Enumerator
kScalar 
kIsSequence 
kIsTypedArray 
kIsArrayBuffer 

◆ Type

enum class v8::CTypeInfo::Type : uint8_t
strong
Enumerator
kVoid 
kBool 
kUint8 
kInt32 
kUint32 
kInt64 
kUint64 
kFloat32 
kFloat64 
kPointer 
kV8Value 
kSeqOneByteString 
kApiObject 
kAny 

Constructor & Destructor Documentation

◆ CTypeInfo() [1/2]

constexpr v8::CTypeInfo::CTypeInfo ( Type  type,
SequenceType  sequence_type = SequenceType::kScalar,
Flags  flags = Flags::kNone 
)
inlineexplicitconstexpr

◆ CTypeInfo() [2/2]

constexpr v8::CTypeInfo::CTypeInfo ( Identifier  identifier)
inlineexplicitconstexpr

Member Function Documentation

◆ GetFlags()

constexpr Flags v8::CTypeInfo::GetFlags ( ) const
inlineconstexpr

◆ GetId()

constexpr Identifier v8::CTypeInfo::GetId ( ) const
inlineconstexpr

◆ GetSequenceType()

constexpr SequenceType v8::CTypeInfo::GetSequenceType ( ) const
inlineconstexpr

◆ GetType()

constexpr Type v8::CTypeInfo::GetType ( ) const
inlineconstexpr

◆ IsFloatingPointType()

static constexpr bool v8::CTypeInfo::IsFloatingPointType ( Type  type)
inlinestaticconstexpr
Here is the caller graph for this function:

◆ IsIntegralType()

static constexpr bool v8::CTypeInfo::IsIntegralType ( Type  type)
inlinestaticconstexpr
Here is the caller graph for this function:

◆ IsPrimitive()

static constexpr bool v8::CTypeInfo::IsPrimitive ( Type  type)
inlinestaticconstexpr
Here is the call graph for this function:

Member Data Documentation

◆ kCallbackOptionsType

constexpr Type v8::CTypeInfo::kCallbackOptionsType = Type(255)
staticconstexpr

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