FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/src/encoding_binding.h at patch-1 · computerscienceiscool/node · GitHub
computerscienceiscool
/
node
Public
forked from
nodejs/node
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
src
/
encoding_binding.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
61 lines (47 loc) · 2.06 KB
Breadcrumbs
node
/
src
/
encoding_binding.h
Copy path
File metadata and controls
executable file
·
61 lines (47 loc) · 2.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
ifndef
SRC_ENCODING_BINDING_H_
#
define
SRC_ENCODING_BINDING_H_
#
if
defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#
include
<
cinttypes
>
#
include
"
aliased_buffer.h
"
#
include
"
node_snapshotable.h
"
#
include
"
v8-fast-api-calls.h
"
namespace
node
{
class
ExternalReferenceRegistry
;
namespace
encoding_binding
{
class
BindingData
:
public
SnapshotableObject
{
public:
struct
InternalFieldInfo
:
public
node
::InternalFieldInfoBase {
AliasedBufferIndex encode_into_results_buffer;
};
BindingData
(Realm* realm,
v8::Local<v8::Object> obj,
InternalFieldInfo* info =
nullptr
);
SERIALIZABLE_OBJECT_METHODS
()
SET_BINDING_ID
(encoding_binding_data)
void
MemoryInfo
(MemoryTracker* tracker)
const
override
;
SET_SELF_SIZE
(BindingData)
SET_MEMORY_INFO_NAME
(BindingData)
static
void
EncodeInto
(
const
v8::FunctionCallbackInfo<v8::Value>& args);
static
void
EncodeUtf8String
(
const
v8::FunctionCallbackInfo<v8::Value>& args);
static
void
DecodeUTF8
(
const
v8::FunctionCallbackInfo<v8::Value>& args);
static
void
DecodeWindows1252
(
const
v8::FunctionCallbackInfo<v8::Value>& args);
static
void
ToASCII
(
const
v8::FunctionCallbackInfo<v8::Value>& args);
static
void
ToUnicode
(
const
v8::FunctionCallbackInfo<v8::Value>& args);
static
void
CreatePerIsolateProperties
(IsolateData* isolate_data,
v8::Local<v8::ObjectTemplate> target);
static
void
CreatePerContextProperties
(v8::Local<v8::Object> target,
v8::Local<v8::Value> unused,
v8::Local<v8::Context> context,
void
* priv);
static
void
RegisterTimerExternalReferences
(
ExternalReferenceRegistry* registry);
private:
static
constexpr
size_t
kEncodeIntoResultsLength
=
2
;
AliasedUint32Array encode_into_results_buffer_;
InternalFieldInfo* internal_field_info_ =
nullptr
;
};
}
//
namespace encoding_binding
}
//
namespace node
#
endif
//
defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#
endif
//
SRC_ENCODING_BINDING_H_
Back
|
FazBrowse Home
|
New Git URL