-
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathExtVector.h
More file actions
21 lines (16 loc) · 716 Bytes
/
ExtVector.h
File metadata and controls
21 lines (16 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef ExtVector_h
#define ExtVector_h
#include "Common.h"
#include "libffi.h"
#include "Metadata.h"
namespace tns {
class ExtVector {
public:
static v8::Local<v8::Value> NewInstance(v8::Isolate* isolate, void* data, ffi_type* ffiType, const TypeEncoding* innerTypeEncoding, const TypeEncoding* typeEncoding);
private:
static void RegisterToStringMethod(v8::Isolate* isolate, v8::Local<v8::ObjectTemplate> prototypeTemplate);
static void IndexedPropertyGetCallback(uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info);
static void IndexedPropertySetCallback(uint32_t index, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<v8::Value>& info);
};
}
#endif /* ExtVector_h */