forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.h
More file actions
30 lines (21 loc) · 1.05 KB
/
Copy pathdata.h
File metadata and controls
30 lines (21 loc) · 1.05 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
28
29
30
#pragma once
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#include "base_object.h"
#include "ffi.h"
#include <cstdint>
namespace node::ffi {
v8::Maybe<int64_t> GetValidatedSignedInt(Environment* env,
v8::Local<v8::Value> value,
int64_t min,
int64_t max,
const char* type_name);
v8::Maybe<uint64_t> GetValidatedUnsignedInt(Environment* env,
v8::Local<v8::Value> value,
uint64_t max,
const char* type_name);
v8::Maybe<uintptr_t> GetValidatedPointerAddress(Environment* env,
v8::Local<v8::Value> value,
const char* label);
size_t GetFFIReturnValueStorageSize(ffi_type* type);
} // namespace node::ffi
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS