@dcl/playground-assets 7.1.1-4386019452.commit-8b1daa0 → 7.1.1-4386722558.commit-407b3a3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +36 -34
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +3 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -14215,6 +14215,8 @@
|
|
|
14215
14215
|
*
|
|
14216
14216
|
* - Use read and write function to generate or consume data.
|
|
14217
14217
|
* - Use set and get only if you are sure that you're doing.
|
|
14218
|
+
*
|
|
14219
|
+
* It always passes littleEndian param as true
|
|
14218
14220
|
*/
|
|
14219
14221
|
class ReadWriteByteBuffer {
|
|
14220
14222
|
/**
|
|
@@ -14252,41 +14254,41 @@
|
|
|
14252
14254
|
return this.woffset - this.roffset;
|
|
14253
14255
|
}
|
|
14254
14256
|
readFloat32() {
|
|
14255
|
-
return this.view.getFloat32(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 4));
|
|
14257
|
+
return this.view.getFloat32(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 4), true); // littleEndian = true
|
|
14256
14258
|
}
|
|
14257
14259
|
readFloat64() {
|
|
14258
|
-
return this.view.getFloat64(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 8));
|
|
14260
|
+
return this.view.getFloat64(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 8), true); // littleEndian = true
|
|
14259
14261
|
}
|
|
14260
14262
|
readInt8() {
|
|
14261
14263
|
return this.view.getInt8(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 1));
|
|
14262
14264
|
}
|
|
14263
14265
|
readInt16() {
|
|
14264
|
-
return this.view.getInt16(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 2));
|
|
14266
|
+
return this.view.getInt16(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 2), true); // littleEndian = true
|
|
14265
14267
|
}
|
|
14266
14268
|
readInt32() {
|
|
14267
|
-
return this.view.getInt32(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 4));
|
|
14269
|
+
return this.view.getInt32(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 4), true); // littleEndian = true
|
|
14268
14270
|
}
|
|
14269
14271
|
readInt64() {
|
|
14270
|
-
return this.view.getBigInt64(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 8));
|
|
14272
|
+
return this.view.getBigInt64(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 8), true); // littleEndian = true
|
|
14271
14273
|
}
|
|
14272
14274
|
readUint8() {
|
|
14273
14275
|
return this.view.getUint8(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 1));
|
|
14274
14276
|
}
|
|
14275
14277
|
readUint16() {
|
|
14276
|
-
return this.view.getUint16(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 2));
|
|
14278
|
+
return this.view.getUint16(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 2), true); // littleEndian = true
|
|
14277
14279
|
}
|
|
14278
14280
|
readUint32() {
|
|
14279
|
-
return this.view.getUint32(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 4));
|
|
14281
|
+
return this.view.getUint32(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 4), true); // littleEndian = true
|
|
14280
14282
|
}
|
|
14281
14283
|
readUint64() {
|
|
14282
|
-
return this.view.getBigUint64(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 8));
|
|
14284
|
+
return this.view.getBigUint64(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 8), true); // littleEndian = true
|
|
14283
14285
|
}
|
|
14284
14286
|
readBuffer() {
|
|
14285
|
-
const length = this.view.getUint32(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 4));
|
|
14287
|
+
const length = this.view.getUint32(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 4), true); // littleEndian = true
|
|
14286
14288
|
return this._buffer.subarray(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, length), __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 0));
|
|
14287
14289
|
}
|
|
14288
14290
|
readUtf8String() {
|
|
14289
|
-
const length = this.view.getUint32(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 4));
|
|
14291
|
+
const length = this.view.getUint32(__classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 4), true); // littleEndian = true
|
|
14290
14292
|
return utf8Exports.read(this._buffer, __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, length), __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_roAdd).call(this, 0));
|
|
14291
14293
|
}
|
|
14292
14294
|
incrementWriteOffset(amount) {
|
|
@@ -14315,11 +14317,11 @@
|
|
|
14315
14317
|
}
|
|
14316
14318
|
writeFloat32(value) {
|
|
14317
14319
|
const o = __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_woAdd).call(this, 4);
|
|
14318
|
-
this.view.setFloat32(o, value);
|
|
14320
|
+
this.view.setFloat32(o, value, true); // littleEndian = true
|
|
14319
14321
|
}
|
|
14320
14322
|
writeFloat64(value) {
|
|
14321
14323
|
const o = __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_woAdd).call(this, 8);
|
|
14322
|
-
this.view.setFloat64(o, value);
|
|
14324
|
+
this.view.setFloat64(o, value, true); // littleEndian = true
|
|
14323
14325
|
}
|
|
14324
14326
|
writeInt8(value) {
|
|
14325
14327
|
const o = __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_woAdd).call(this, 1);
|
|
@@ -14327,15 +14329,15 @@
|
|
|
14327
14329
|
}
|
|
14328
14330
|
writeInt16(value) {
|
|
14329
14331
|
const o = __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_woAdd).call(this, 2);
|
|
14330
|
-
this.view.setInt16(o, value);
|
|
14332
|
+
this.view.setInt16(o, value, true); // littleEndian = true
|
|
14331
14333
|
}
|
|
14332
14334
|
writeInt32(value) {
|
|
14333
14335
|
const o = __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_woAdd).call(this, 4);
|
|
14334
|
-
this.view.setInt32(o, value);
|
|
14336
|
+
this.view.setInt32(o, value, true); // littleEndian = true
|
|
14335
14337
|
}
|
|
14336
14338
|
writeInt64(value) {
|
|
14337
14339
|
const o = __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_woAdd).call(this, 8);
|
|
14338
|
-
this.view.setBigInt64(o, value);
|
|
14340
|
+
this.view.setBigInt64(o, value, true); // littleEndian = true
|
|
14339
14341
|
}
|
|
14340
14342
|
writeUint8(value) {
|
|
14341
14343
|
const o = __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_woAdd).call(this, 1);
|
|
@@ -14343,76 +14345,76 @@
|
|
|
14343
14345
|
}
|
|
14344
14346
|
writeUint16(value) {
|
|
14345
14347
|
const o = __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_woAdd).call(this, 2);
|
|
14346
|
-
this.view.setUint16(o, value);
|
|
14348
|
+
this.view.setUint16(o, value, true); // littleEndian = true
|
|
14347
14349
|
}
|
|
14348
14350
|
writeUint32(value) {
|
|
14349
14351
|
const o = __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_woAdd).call(this, 4);
|
|
14350
|
-
this.view.setUint32(o, value);
|
|
14352
|
+
this.view.setUint32(o, value, true); // littleEndian = true
|
|
14351
14353
|
}
|
|
14352
14354
|
writeUint64(value) {
|
|
14353
14355
|
const o = __classPrivateFieldGet(this, _ReadWriteByteBuffer_instances, "m", _ReadWriteByteBuffer_woAdd).call(this, 8);
|
|
14354
|
-
this.view.setBigUint64(o, value);
|
|
14356
|
+
this.view.setBigUint64(o, value, true); // littleEndian = true
|
|
14355
14357
|
}
|
|
14356
14358
|
// DataView Proxy
|
|
14357
14359
|
getFloat32(offset) {
|
|
14358
|
-
return this.view.getFloat32(offset);
|
|
14360
|
+
return this.view.getFloat32(offset, true); // littleEndian = true
|
|
14359
14361
|
}
|
|
14360
14362
|
getFloat64(offset) {
|
|
14361
|
-
return this.view.getFloat64(offset);
|
|
14363
|
+
return this.view.getFloat64(offset, true); // littleEndian = true
|
|
14362
14364
|
}
|
|
14363
14365
|
getInt8(offset) {
|
|
14364
14366
|
return this.view.getInt8(offset);
|
|
14365
14367
|
}
|
|
14366
14368
|
getInt16(offset) {
|
|
14367
|
-
return this.view.getInt16(offset);
|
|
14369
|
+
return this.view.getInt16(offset, true); // littleEndian = true
|
|
14368
14370
|
}
|
|
14369
14371
|
getInt32(offset) {
|
|
14370
|
-
return this.view.getInt32(offset);
|
|
14372
|
+
return this.view.getInt32(offset, true); // littleEndian = true
|
|
14371
14373
|
}
|
|
14372
14374
|
getInt64(offset) {
|
|
14373
|
-
return this.view.getBigInt64(offset);
|
|
14375
|
+
return this.view.getBigInt64(offset, true); // littleEndian = true
|
|
14374
14376
|
}
|
|
14375
14377
|
getUint8(offset) {
|
|
14376
14378
|
return this.view.getUint8(offset);
|
|
14377
14379
|
}
|
|
14378
14380
|
getUint16(offset) {
|
|
14379
|
-
return this.view.getUint16(offset);
|
|
14381
|
+
return this.view.getUint16(offset, true); // littleEndian = true
|
|
14380
14382
|
}
|
|
14381
14383
|
getUint32(offset) {
|
|
14382
|
-
return this.view.getUint32(offset) >>> 0
|
|
14384
|
+
return this.view.getUint32(offset, true); // littleEndian = true >>> 0
|
|
14383
14385
|
}
|
|
14384
14386
|
getUint64(offset) {
|
|
14385
|
-
return this.view.getBigUint64(offset);
|
|
14387
|
+
return this.view.getBigUint64(offset, true); // littleEndian = true
|
|
14386
14388
|
}
|
|
14387
14389
|
setFloat32(offset, value) {
|
|
14388
|
-
this.view.setFloat32(offset, value);
|
|
14390
|
+
this.view.setFloat32(offset, value, true); // littleEndian = true
|
|
14389
14391
|
}
|
|
14390
14392
|
setFloat64(offset, value) {
|
|
14391
|
-
this.view.setFloat64(offset, value);
|
|
14393
|
+
this.view.setFloat64(offset, value, true); // littleEndian = true
|
|
14392
14394
|
}
|
|
14393
14395
|
setInt8(offset, value) {
|
|
14394
14396
|
this.view.setInt8(offset, value);
|
|
14395
14397
|
}
|
|
14396
14398
|
setInt16(offset, value) {
|
|
14397
|
-
this.view.setInt16(offset, value);
|
|
14399
|
+
this.view.setInt16(offset, value, true); // littleEndian = true
|
|
14398
14400
|
}
|
|
14399
14401
|
setInt32(offset, value) {
|
|
14400
|
-
this.view.setInt32(offset, value);
|
|
14402
|
+
this.view.setInt32(offset, value, true); // littleEndian = true
|
|
14401
14403
|
}
|
|
14402
14404
|
setInt64(offset, value) {
|
|
14403
|
-
this.view.setBigInt64(offset, value);
|
|
14405
|
+
this.view.setBigInt64(offset, value, true); // littleEndian = true
|
|
14404
14406
|
}
|
|
14405
14407
|
setUint8(offset, value) {
|
|
14406
14408
|
this.view.setUint8(offset, value);
|
|
14407
14409
|
}
|
|
14408
14410
|
setUint16(offset, value) {
|
|
14409
|
-
this.view.setUint16(offset, value);
|
|
14411
|
+
this.view.setUint16(offset, value, true); // littleEndian = true
|
|
14410
14412
|
}
|
|
14411
14413
|
setUint32(offset, value) {
|
|
14412
|
-
this.view.setUint32(offset, value);
|
|
14414
|
+
this.view.setUint32(offset, value, true); // littleEndian = true
|
|
14413
14415
|
}
|
|
14414
14416
|
setUint64(offset, value) {
|
|
14415
|
-
this.view.setBigUint64(offset, value);
|
|
14417
|
+
this.view.setBigUint64(offset, value, true); // littleEndian = true
|
|
14416
14418
|
}
|
|
14417
14419
|
}
|
|
14418
14420
|
_ReadWriteByteBuffer_instances = new WeakSet(), _ReadWriteByteBuffer_woAdd = function _ReadWriteByteBuffer_woAdd(amount) {
|