v8  8.4.371 (node 14.15.5)
V8 is Google's open source JavaScript engine
CTypeInfo Class Reference

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

Public Types

enum class  Type : char {
  kVoid , kBool , kInt32 , kUint32 ,
  kInt64 , kUint64 , kFloat32 , kFloat64 ,
  kUnwrappedApiObject
}
 
enum class  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 (const void *wrapper_type_info, ArgFlags flags=ArgFlags::kNone)
 
static constexpr CTypeInfo FromCType (Type ctype, ArgFlags flags=ArgFlags::kNone)
 

Detailed Description

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

Member Enumeration Documentation

◆ ArgFlags

enum ArgFlags : uint8_t
strong
Enumerator
kNone 
kIsArrayBit 

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

◆ Type

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

Definition at line 174 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 206 of file v8-fast-api-calls.h.

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

◆ FromWrapperType()

◆ GetType()

constexpr Type GetType ( ) const
inlineconstexpr

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

References CTypeInfo::kUnwrappedApiObject.

◆ GetWrapperInfo()

const void* GetWrapperInfo ( ) const

◆ IsArray()

constexpr bool IsArray ( ) const
inlineconstexpr

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

References CTypeInfo::kIsArrayBit.


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