-
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathPointer.h
More file actions
27 lines (22 loc) · 1.23 KB
/
Pointer.h
File metadata and controls
27 lines (22 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef Pointer_h
#define Pointer_h
#include "Common.h"
#include "DataWrapper.h"
namespace tns {
class Pointer {
public:
static void Register(v8::Local<v8::Context> context, v8::Local<v8::Object> interop);
static v8::Local<v8::Value> NewInstance(v8::Local<v8::Context> context, void* handle);
private:
static v8::Local<v8::Function> GetPointerCtorFunc(v8::Local<v8::Context> context);
static void PointerConstructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info);
static void RegisterAddMethod(v8::Local<v8::Context> context, v8::Local<v8::Object> prototype);
static void RegisterSubtractMethod(v8::Local<v8::Context> context, v8::Local<v8::Object> prototype);
static void RegisterToStringMethod(v8::Local<v8::Context> context, v8::Local<v8::Object> prototype);
static void RegisterToHexStringMethod(v8::Local<v8::Context> context, v8::Local<v8::Object> prototype);
static void RegisterToDecimalStringMethod(v8::Local<v8::Context> context, v8::Local<v8::Object> prototype);
static void RegisterToNumberMethod(v8::Local<v8::Context> context, v8::Local<v8::Object> prototype);
static void RegisterToBigIntMethod(v8::Local<v8::Context> context, v8::Local<v8::Object> prototype);
};
}
#endif /* Pointer_h */