@@ -121,7 +121,7 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
121
121
["byteOffset","int","The offset in bytes to read from"],
122
122
["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
123
123
],
124
- "return" : ["JsVar","the index of the value in the array, or -1 "],
124
+ "return" : ["JsVar","The value of the 4 bytes in the array at `byteOffset` when interpreted as a `float` "],
125
125
"ifndef" : "SAVE_ON_FLASH",
126
126
"typescript" : "getFloat32(byteOffset: number, littleEndian?: boolean): number;"
127
127
}
@@ -135,7 +135,7 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
135
135
["byteOffset","int","The offset in bytes to read from"],
136
136
["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
137
137
],
138
- "return" : ["JsVar","the index of the value in the array, or -1 "],
138
+ "return" : ["JsVar","The value of the 8 bytes in the array at `byteOffset` when interpreted as a `double` "],
139
139
"ifndef" : "SAVE_ON_FLASH",
140
140
"typescript" : "getFloat64(byteOffset: number, littleEndian?: boolean): number;"
141
141
}
@@ -149,7 +149,7 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
149
149
["byteOffset","int","The offset in bytes to read from"],
150
150
["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
151
151
],
152
- "return" : ["JsVar","the index of the value in the array, or -1 "],
152
+ "return" : ["JsVar","The value of the 1 byte in the array at `byteOffset` when interpreted as `int8` "],
153
153
"ifndef" : "SAVE_ON_FLASH",
154
154
"typescript" : "getInt8(byteOffset: number, littleEndian?: boolean): number;"
155
155
}
@@ -163,7 +163,7 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
163
163
["byteOffset","int","The offset in bytes to read from"],
164
164
["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
165
165
],
166
- "return" : ["JsVar","the index of the value in the array, or -1 "],
166
+ "return" : ["JsVar","The value of the 2 bytes in the array at `byteOffset` when interpreted as `int16` "],
167
167
"ifndef" : "SAVE_ON_FLASH",
168
168
"typescript" : "getInt16(byteOffset: number, littleEndian?: boolean): number;"
169
169
}
@@ -177,7 +177,7 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
177
177
["byteOffset","int","The offset in bytes to read from"],
178
178
["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
179
179
],
180
- "return" : ["JsVar","the index of the value in the array, or -1 "],
180
+ "return" : ["JsVar","The value of the 4 bytes in the array at `byteOffset` when interpreted as `int32` "],
181
181
"ifndef" : "SAVE_ON_FLASH",
182
182
"typescript" : "getInt32(byteOffset: number, littleEndian?: boolean): number;"
183
183
}
@@ -191,7 +191,7 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
191
191
["byteOffset","int","The offset in bytes to read from"],
192
192
["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
193
193
],
194
- "return" : ["JsVar","the index of the value in the array, or -1 "],
194
+ "return" : ["JsVar","The value of the 1 byte in the array at `byteOffset` when interpreted as `uint8` "],
195
195
"ifndef" : "SAVE_ON_FLASH",
196
196
"typescript" : "getUint8(byteOffset: number, littleEndian?: boolean): number;"
197
197
}
@@ -205,7 +205,7 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
205
205
["byteOffset","int","The offset in bytes to read from"],
206
206
["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
207
207
],
208
- "return" : ["JsVar","the index of the value in the array, or -1 "],
208
+ "return" : ["JsVar","The value of the 2 bytes in the array at `byteOffset` when interpreted as `uint16` "],
209
209
"ifndef" : "SAVE_ON_FLASH",
210
210
"typescript" : "getUint16(byteOffset: number, littleEndian?: boolean): number;"
211
211
}
@@ -219,7 +219,7 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
219
219
["byteOffset","int","The offset in bytes to read from"],
220
220
["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
221
221
],
222
- "return" : ["JsVar","the index of the value in the array, or -1 "],
222
+ "return" : ["JsVar","The value of the 4 bytes in the array at `byteOffset` when interpreted as `uint32` "],
223
223
"ifndef" : "SAVE_ON_FLASH",
224
224
"typescript" : "getUint32(byteOffset: number, littleEndian?: boolean): number;"
225
225
}
@@ -233,9 +233,9 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
233
233
"name" : "setFloat32",
234
234
"generate_full" : "jswrap_dataview_set(parent, ARRAYBUFFERVIEW_FLOAT32, byteOffset, value, littleEndian)",
235
235
"params" : [
236
- ["byteOffset","int","The offset in bytes to read from "],
236
+ ["byteOffset","int","The offset in bytes to write to "],
237
237
["value","JsVar","The value to write"],
238
- ["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
238
+ ["littleEndian","bool","[optional] Whether to write in little endian - if false or undefined data is written as big endian"]
239
239
],
240
240
"ifndef" : "SAVE_ON_FLASH",
241
241
"typescript" : "setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;"
@@ -247,9 +247,9 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
247
247
"name" : "setFloat64",
248
248
"generate_full" : "jswrap_dataview_set(parent, ARRAYBUFFERVIEW_FLOAT64, byteOffset, value, littleEndian)",
249
249
"params" : [
250
- ["byteOffset","int","The offset in bytes to read from "],
250
+ ["byteOffset","int","The offset in bytes to write to "],
251
251
["value","JsVar","The value to write"],
252
- ["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
252
+ ["littleEndian","bool","[optional] Whether to write in little endian - if false or undefined data is written as big endian"]
253
253
],
254
254
"ifndef" : "SAVE_ON_FLASH",
255
255
"typescript" : "setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;"
@@ -261,9 +261,9 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
261
261
"name" : "setInt8",
262
262
"generate_full" : "jswrap_dataview_set(parent, ARRAYBUFFERVIEW_INT8, byteOffset, value, littleEndian)",
263
263
"params" : [
264
- ["byteOffset","int","The offset in bytes to read from "],
264
+ ["byteOffset","int","The offset in bytes to write to "],
265
265
["value","JsVar","The value to write"],
266
- ["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
266
+ ["littleEndian","bool","[optional] Whether to write in little endian - if false or undefined data is written as big endian"]
267
267
],
268
268
"ifndef" : "SAVE_ON_FLASH",
269
269
"typescript" : "setInt8(byteOffset: number, value: number, littleEndian?: boolean): void;"
@@ -275,9 +275,9 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
275
275
"name" : "setInt16",
276
276
"generate_full" : "jswrap_dataview_set(parent, ARRAYBUFFERVIEW_INT16, byteOffset, value, littleEndian)",
277
277
"params" : [
278
- ["byteOffset","int","The offset in bytes to read from "],
278
+ ["byteOffset","int","The offset in bytes to write to "],
279
279
["value","JsVar","The value to write"],
280
- ["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
280
+ ["littleEndian","bool","[optional] Whether to write in little endian - if false or undefined data is written as big endian"]
281
281
],
282
282
"ifndef" : "SAVE_ON_FLASH",
283
283
"typescript" : "setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;"
@@ -289,9 +289,9 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
289
289
"name" : "setInt32",
290
290
"generate_full" : "jswrap_dataview_set(parent, ARRAYBUFFERVIEW_INT32, byteOffset, value, littleEndian)",
291
291
"params" : [
292
- ["byteOffset","int","The offset in bytes to read from "],
292
+ ["byteOffset","int","The offset in bytes to write to "],
293
293
["value","JsVar","The value to write"],
294
- ["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
294
+ ["littleEndian","bool","[optional] Whether to write in little endian - if false or undefined data is written as big endian"]
295
295
],
296
296
"ifndef" : "SAVE_ON_FLASH",
297
297
"typescript" : "setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;"
@@ -303,9 +303,9 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
303
303
"name" : "setUint8",
304
304
"generate_full" : "jswrap_dataview_set(parent, ARRAYBUFFERVIEW_UINT8, byteOffset, value, littleEndian)",
305
305
"params" : [
306
- ["byteOffset","int","The offset in bytes to read from "],
306
+ ["byteOffset","int","The offset in bytes to write to "],
307
307
["value","JsVar","The value to write"],
308
- ["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
308
+ ["littleEndian","bool","[optional] Whether to write in little endian - if false or undefined data is written as big endian"]
309
309
],
310
310
"ifndef" : "SAVE_ON_FLASH",
311
311
"typescript" : "setUint8(byteOffset: number, value: number, littleEndian?: boolean): void;"
@@ -317,9 +317,9 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
317
317
"name" : "setUint16",
318
318
"generate_full" : "jswrap_dataview_set(parent, ARRAYBUFFERVIEW_UINT16, byteOffset, value, littleEndian)",
319
319
"params" : [
320
- ["byteOffset","int","The offset in bytes to read from "],
320
+ ["byteOffset","int","The offset in bytes to write to "],
321
321
["value","JsVar","The value to write"],
322
- ["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
322
+ ["littleEndian","bool","[optional] Whether to write in little endian - if false or undefined data is written as big endian"]
323
323
],
324
324
"ifndef" : "SAVE_ON_FLASH",
325
325
"typescript" : "setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;"
@@ -331,9 +331,9 @@ void jswrap_dataview_set(JsVar *dataview, JsVarDataArrayBufferViewType type, int
331
331
"name" : "setUint32",
332
332
"generate_full" : "jswrap_dataview_set(parent, ARRAYBUFFERVIEW_UINT32, byteOffset, value, littleEndian)",
333
333
"params" : [
334
- ["byteOffset","int","The offset in bytes to read from "],
334
+ ["byteOffset","int","The offset in bytes to write to "],
335
335
["value","JsVar","The value to write"],
336
- ["littleEndian","bool","[optional] Whether to read in little endian - if false or undefined data is read as big endian"]
336
+ ["littleEndian","bool","[optional] Whether to write in little endian - if false or undefined data is written as big endian"]
337
337
],
338
338
"ifndef" : "SAVE_ON_FLASH",
339
339
"typescript" : "setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;"
0 commit comments