v8  8.6.395(node15.0.1)
V8 is Google's open source JavaScript engine
CTypeInfo Class Reference

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

Public Types

enum  Type : char {
  kVoid, kBool, kInt32, kUint32,
  kInt64, kUint64, kFloat32, kFloat64,
  kV8Value
}
 
enum  ArgFlags : uint8_t { kNone = 0, kIsArrayBit = 1 << 0 }
 

Public Member Functions

const void * GetWrapperInfo () const
 
constexpr Type GetType () const
 
constexpr bool IsArray () const
 

Static Public Member Functions

static CTypeInfo FromWrapperType (ArgFlags flags=ArgFlags::kNone)
 
static constexpr CTypeInfo FromCType (Type ctype, ArgFlags flags=ArgFlags::kNone)
 
static const CTypeInfoInvalid ()
 

Detailed Description

Definition at line 148 of file v8-fast-api-calls.h.

Member Enumeration Documentation

◆ ArgFlags

enum ArgFlags : uint8_t
strong
Enumerator
kNone 
kIsArrayBit 

Definition at line 162 of file v8-fast-api-calls.h.

◆ Type

enum Type : char
strong
Enumerator
kVoid 
kBool 
kInt32 
kUint32 
kInt64 
kUint64 
kFloat32 
kFloat64 
kV8Value 

Definition at line 150 of file v8-fast-api-calls.h.

Member Function Documentation

◆ FromCType()

static constexpr CTypeInfo FromCType ( Type  ctype,
ArgFlags  flags = ArgFlags::kNone 
)
inlinestaticconstexpr

Definition at line 171 of file v8-fast-api-calls.h.

Referenced by GetCType< T >::Get(), and GetCTypePointerImpl< T >::Get().

◆ FromWrapperType()

static CTypeInfo FromWrapperType ( ArgFlags  flags = ArgFlags::kNone)
inlinestatic

◆ GetType()

constexpr Type GetType ( ) const
inlineconstexpr

Definition at line 183 of file v8-fast-api-calls.h.

References CTypeInfo::kV8Value.

◆ GetWrapperInfo()

const void* GetWrapperInfo ( ) const

◆ Invalid()

static const CTypeInfo& Invalid ( )
inlinestatic

◆ IsArray()

constexpr bool IsArray ( ) const
inlineconstexpr

Definition at line 190 of file v8-fast-api-calls.h.

References CTypeInfo::kIsArrayBit.


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