Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
flutter::testing::MyNativeClass Class Reference
Inheritance diagram for flutter::testing::MyNativeClass:
flutter::RefCountedDartWrappable< MyNativeClass > fml::RefCountedThreadSafe< T > tonic::DartWrappable fml::internal::RefCountedThreadSafeBase

Public Member Functions

Dart_Handle MyTestMethod (int64_t x)
 
- Public Member Functions inherited from flutter::RefCountedDartWrappable< MyNativeClass >
virtual void RetainDartWrappableReference () const override
 
virtual void ReleaseDartWrappableReference () const override
 
- Public Member Functions inherited from fml::RefCountedThreadSafe< T >
void Release () const
 
- Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase
void AddRef () const
 
bool HasOneRef () const
 
void AssertHasOneRef () const
 
- Public Member Functions inherited from tonic::DartWrappable
 DartWrappable ()
 
virtual const DartWrapperInfoGetDartWrapperInfo () const =0
 
Dart_Handle CreateDartWrapper (DartState *dart_state)
 
void AssociateWithDartWrapper (Dart_Handle wrappable)
 
void ClearDartWrapper ()
 
Dart_WeakPersistentHandle dart_wrapper () const
 

Static Public Member Functions

static void Create (Dart_Handle path_handle, intptr_t value)
 
static int32_t MyTestFunction (MyNativeClass *ptr, int32_t x, Dart_Handle handle)
 

Public Attributes

intptr_t _value = 0
 

Additional Inherited Members

- Public Types inherited from tonic::DartWrappable
enum  DartNativeFields { kPeerIndex , kNumberOfNativeFields }
 
- Protected Member Functions inherited from fml::RefCountedThreadSafe< T >
 RefCountedThreadSafe ()
 
 ~RefCountedThreadSafe ()
 
- Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase
 RefCountedThreadSafeBase ()
 
 ~RefCountedThreadSafeBase ()
 
bool Release () const
 
void Adopt ()
 
- Protected Member Functions inherited from tonic::DartWrappable
virtual ~DartWrappable ()
 
- Static Protected Member Functions inherited from tonic::DartWrappable
static Dart_PersistentHandle GetTypeForWrapper (tonic::DartState *dart_state, const tonic::DartWrapperInfo &wrapper_info)
 

Detailed Description

Definition at line 14 of file ffi_native_unittest.cc.

Member Function Documentation

◆ Create()

static void flutter::testing::MyNativeClass::Create ( Dart_Handle  path_handle,
intptr_t  value 
)
inlinestatic

Definition at line 23 of file ffi_native_unittest.cc.

23 {
24 auto path = fml::MakeRefCounted<MyNativeClass>(value);
25 path->AssociateWithDartWrapper(path_handle);
26 }
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition switches.h:57

◆ MyTestFunction()

static int32_t flutter::testing::MyNativeClass::MyTestFunction ( MyNativeClass ptr,
int32_t  x,
Dart_Handle  handle 
)
inlinestatic

Definition at line 30 of file ffi_native_unittest.cc.

32 {
33 return ptr->_value + x;
34 }
double x

◆ MyTestMethod()

Dart_Handle flutter::testing::MyNativeClass::MyTestMethod ( int64_t  x)
inline

Definition at line 36 of file ffi_native_unittest.cc.

36{ return Dart_NewInteger(_value + x); }
DART_EXPORT Dart_Handle Dart_NewInteger(int64_t value)

Member Data Documentation

◆ _value

intptr_t flutter::testing::MyNativeClass::_value = 0

Definition at line 21 of file ffi_native_unittest.cc.


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