11
11
Allocates a new ` Napi::DataView ` instance with a given ` Napi::ArrayBuffer ` .
12
12
13
13
``` cpp
14
- static Napi::DataView New (napi_env env, Napi::ArrayBuffer arrayBuffer);
14
+ static Napi::DataView Napi::DataView:: New (napi_env env, Napi::ArrayBuffer arrayBuffer);
15
15
```
16
16
17
17
- `[in] env`: The environment in which to create the `Napi::DataView` instance.
@@ -24,7 +24,7 @@ Returns a new `Napi::DataView` instance.
24
24
Allocates a new `Napi::DataView` instance with a given `Napi::ArrayBuffer`.
25
25
26
26
```cpp
27
- static Napi::DataView New(napi_env env, Napi::ArrayBuffer arrayBuffer, size_t byteOffset);
27
+ static Napi::DataView Napi::DataView:: New(napi_env env, Napi::ArrayBuffer arrayBuffer, size_t byteOffset);
28
28
```
29
29
30
30
- ` [in] env ` : The environment in which to create the ` Napi::DataView ` instance.
@@ -38,7 +38,7 @@ Returns a new `Napi::DataView` instance.
38
38
Allocates a new ` Napi::DataView ` instance with a given ` Napi::ArrayBuffer ` .
39
39
40
40
``` cpp
41
- static Napi::DataView New (napi_env env, Napi::ArrayBuffer arrayBuffer, size_t byteOffset, size_t byteLength);
41
+ static Napi::DataView Napi::DataView:: New (napi_env env, Napi::ArrayBuffer arrayBuffer, size_t byteOffset, size_t byteLength);
42
42
```
43
43
44
44
- `[in] env`: The environment in which to create the `Napi::DataView` instance.
@@ -53,15 +53,15 @@ Returns a new `Napi::DataView` instance.
53
53
Initializes an empty instance of the `Napi::DataView` class.
54
54
55
55
```cpp
56
- DataView();
56
+ Napi:: DataView();
57
57
```
58
58
59
59
### Constructor
60
60
61
61
Initializes a wrapper instance of an existing ` Napi::DataView ` instance.
62
62
63
63
``` cpp
64
- DataView (napi_env env, napi_value value);
64
+ Napi:: DataView (napi_env env, napi_value value);
65
65
```
66
66
67
67
- `[in] env`: The environment in which to create the `Napi::DataView` instance.
@@ -70,41 +70,41 @@ DataView(napi_env env, napi_value value);
70
70
### ArrayBuffer
71
71
72
72
```cpp
73
- Napi::ArrayBuffer ArrayBuffer() const;
73
+ Napi::ArrayBuffer Napi::DataView:: ArrayBuffer() const;
74
74
```
75
75
76
76
Returns the backing array buffer.
77
77
78
78
### ByteOffset
79
79
80
80
``` cpp
81
- size_t ByteOffset () const ;
81
+ size_t Napi::DataView:: ByteOffset () const ;
82
82
```
83
83
84
84
Returns the offset into the ` Napi::DataView ` where the array starts, in bytes.
85
85
86
86
### ByteLength
87
87
88
88
``` cpp
89
- size_t ByteLength () const ;
89
+ size_t Napi::DataView:: ByteLength () const ;
90
90
```
91
91
92
92
Returns the length of the array, in bytes.
93
93
94
94
### GetFloat32
95
95
96
96
``` cpp
97
- float GetFloat32 (size_t byteOffset) const;
97
+ float Napi::DataView:: GetFloat32 (size_t byteOffset) const;
98
98
```
99
99
100
100
- `[in] byteOffset`: The offset, in byte, from the start of the view where to read the data.
101
101
102
- Returns a signed 32-bit float (float) at the specified byte offset from the start of the `DataView`.
102
+ Returns a signed 32-bit float (float) at the specified byte offset from the start of the `Napi:: DataView`.
103
103
104
104
### GetFloat64
105
105
106
106
```cpp
107
- double GetFloat64(size_t byteOffset) const;
107
+ double Napi::DataView:: GetFloat64(size_t byteOffset) const;
108
108
```
109
109
110
110
- ` [in] byteOffset ` : The offset, in byte, from the start of the view where to read the data.
@@ -114,7 +114,7 @@ Returns a signed 64-bit float (double) at the specified byte offset from the sta
114
114
### GetInt8
115
115
116
116
``` cpp
117
- int8_t GetInt8 (size_t byteOffset) const;
117
+ int8_t Napi::DataView:: GetInt8 (size_t byteOffset) const;
118
118
```
119
119
120
120
- `[in] byteOffset`: The offset, in byte, from the start of the view where to read the data.
@@ -124,7 +124,7 @@ Returns a signed 8-bit integer (byte) at the specified byte offset from the star
124
124
### GetInt16
125
125
126
126
```cpp
127
- int16_t GetInt16(size_t byteOffset) const;
127
+ int16_t Napi::DataView:: GetInt16(size_t byteOffset) const;
128
128
```
129
129
130
130
- ` [in] byteOffset ` : The offset, in byte, from the start of the view where to read the data.
@@ -134,7 +134,7 @@ Returns a signed 16-bit integer (short) at the specified byte offset from the st
134
134
### GetInt32
135
135
136
136
``` cpp
137
- int32_t GetInt32 (size_t byteOffset) const;
137
+ int32_t Napi::DataView:: GetInt32 (size_t byteOffset) const;
138
138
```
139
139
140
140
- `[in] byteOffset`: The offset, in byte, from the start of the view where to read the data.
@@ -144,7 +144,7 @@ Returns a signed 32-bit integer (long) at the specified byte offset from the sta
144
144
### GetUint8
145
145
146
146
```cpp
147
- uint8_t GetUint8(size_t byteOffset) const;
147
+ uint8_t Napi::DataView:: GetUint8(size_t byteOffset) const;
148
148
```
149
149
150
150
- ` [in] byteOffset ` : The offset, in byte, from the start of the view where to read the data.
@@ -154,7 +154,7 @@ Returns a unsigned 8-bit integer (unsigned byte) at the specified byte offset fr
154
154
### GetUint16
155
155
156
156
``` cpp
157
- uint16_t GetUint16 (size_t byteOffset) const;
157
+ uint16_t Napi::DataView:: GetUint16 (size_t byteOffset) const;
158
158
```
159
159
160
160
- `[in] byteOffset`: The offset, in byte, from the start of the view where to read the data.
@@ -164,7 +164,7 @@ Returns a unsigned 16-bit integer (unsigned short) at the specified byte offset
164
164
### GetUint32
165
165
166
166
```cpp
167
- uint32_t GetUint32(size_t byteOffset) const;
167
+ uint32_t Napi::DataView:: GetUint32(size_t byteOffset) const;
168
168
```
169
169
170
170
- ` [in] byteOffset ` : The offset, in byte, from the start of the view where to read the data.
@@ -174,7 +174,7 @@ Returns a unsigned 32-bit integer (unsigned long) at the specified byte offset f
174
174
### SetFloat32
175
175
176
176
``` cpp
177
- void SetFloat32 (size_t byteOffset, float value) const;
177
+ void Napi::DataView:: SetFloat32 (size_t byteOffset, float value) const;
178
178
```
179
179
180
180
- `[in] byteOffset`: The offset, in byte, from the start of the view where to read the data.
@@ -183,7 +183,7 @@ void SetFloat32(size_t byteOffset, float value) const;
183
183
### SetFloat64
184
184
185
185
```cpp
186
- void SetFloat64(size_t byteOffset, double value) const;
186
+ void Napi::DataView:: SetFloat64(size_t byteOffset, double value) const;
187
187
```
188
188
189
189
- ` [in] byteOffset ` : The offset, in byte, from the start of the view where to read the data.
@@ -192,7 +192,7 @@ void SetFloat64(size_t byteOffset, double value) const;
192
192
### SetInt8
193
193
194
194
``` cpp
195
- void SetInt8 (size_t byteOffset, int8_t value) const;
195
+ void Napi::DataView:: SetInt8 (size_t byteOffset, int8_t value) const;
196
196
```
197
197
198
198
- `[in] byteOffset`: The offset, in byte, from the start of the view where to read the data.
@@ -201,7 +201,7 @@ void SetInt8(size_t byteOffset, int8_t value) const;
201
201
### SetInt16
202
202
203
203
```cpp
204
- void SetInt16(size_t byteOffset, int16_t value) const;
204
+ void Napi::DataView:: SetInt16(size_t byteOffset, int16_t value) const;
205
205
```
206
206
207
207
- ` [in] byteOffset ` : The offset, in byte, from the start of the view where to read the data.
@@ -210,7 +210,7 @@ void SetInt16(size_t byteOffset, int16_t value) const;
210
210
### SetInt32
211
211
212
212
``` cpp
213
- void SetInt32 (size_t byteOffset, int32_t value) const;
213
+ void Napi::DataView:: SetInt32 (size_t byteOffset, int32_t value) const;
214
214
```
215
215
216
216
- `[in] byteOffset`: The offset, in byte, from the start of the view where to read the data.
@@ -219,7 +219,7 @@ void SetInt32(size_t byteOffset, int32_t value) const;
219
219
### SetUint8
220
220
221
221
```cpp
222
- void SetUint8(size_t byteOffset, uint8_t value) const;
222
+ void Napi::DataView:: SetUint8(size_t byteOffset, uint8_t value) const;
223
223
```
224
224
225
225
- ` [in] byteOffset ` : The offset, in byte, from the start of the view where to read the data.
@@ -228,7 +228,7 @@ void SetUint8(size_t byteOffset, uint8_t value) const;
228
228
### SetUint16
229
229
230
230
``` cpp
231
- void SetUint16 (size_t byteOffset, uint16_t value) const;
231
+ void Napi::DataView:: SetUint16 (size_t byteOffset, uint16_t value) const;
232
232
```
233
233
234
234
- `[in] byteOffset`: The offset, in byte, from the start of the view where to read the data.
@@ -237,7 +237,7 @@ void SetUint16(size_t byteOffset, uint16_t value) const;
237
237
### SetUint32
238
238
239
239
```cpp
240
- void SetUint32(size_t byteOffset, uint32_t value) const;
240
+ void Napi::DataView:: SetUint32(size_t byteOffset, uint32_t value) const;
241
241
```
242
242
243
243
- ` [in] byteOffset ` : The offset, in byte, from the start of the view where to read the data.
0 commit comments