V8  latest master commit
V8 is Google's open source JavaScript engine
v8::CTypeInfo Class Reference

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

Public Types

enum  Type : char {
  Type::kVoid, Type::kBool, Type::kInt32, Type::kUint32,
  Type::kInt64, Type::kUint64, Type::kFloat32, Type::kFloat64,
  Type::kUnwrappedApiObject
}
 
enum  ArgFlags : uint8_t { ArgFlags::kNone = 0, ArgFlags::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 v8::CTypeInfo::ArgFlags : uint8_t
strong
Enumerator
kNone 
kIsArrayBit 

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

◆ Type

enum v8::CTypeInfo::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 v8::CTypeInfo::FromCType ( Type  ctype,
ArgFlags  flags = ArgFlags::kNone 
)
inlinestaticconstexpr

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

◆ FromWrapperType()

static CTypeInfo v8::CTypeInfo::FromWrapperType ( const void *  wrapper_type_info,
ArgFlags  flags = ArgFlags::kNone 
)
inlinestatic

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

◆ GetType()

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

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

◆ GetWrapperInfo()

const void* v8::CTypeInfo::GetWrapperInfo ( ) const

◆ IsArray()

constexpr bool v8::CTypeInfo::IsArray ( ) const
inlineconstexpr

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


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