v8toolkit  0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
Public Member Functions | Static Public Member Functions | List of all members
v8toolkit::CastToNative< char * > Struct Template Reference

#include <casts.hpp>

Public Member Functions

std::unique_ptr< char[]> operator() (v8::Isolate *isolate, v8::Local< v8::Value > value) const
 

Static Public Member Functions

static constexpr bool callable ()
 

Detailed Description

template<>
struct v8toolkit::CastToNative< char * >

char * and const char * are the only types that don't actually return their own type. Since a buffer is needed to store the string, a std::unique_ptr<char[]> is returned.

Definition at line 281 of file casts.hpp.

Member Function Documentation

std::unique_ptr<char[]> v8toolkit::CastToNative< char * >::operator() ( v8::Isolate *  isolate,
v8::Local< v8::Value >  value 
) const
inline

Definition at line 282 of file casts.hpp.

References HANDLE_FUNCTION_VALUES.

static constexpr bool v8toolkit::CastToNative< char * >::callable ( )
inlinestatic

Definition at line 286 of file casts.hpp.


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