@loaders.gl/loader-utils
Advanced tools
Comparing version 1.1.2 to 1.1.4
@@ -30,3 +30,3 @@ "use strict"; | ||
function copyPaddedStringToDataView(dataView, byteOffset, string, padding) { | ||
var textEncoder = new TextEncoder('utf8'); | ||
var textEncoder = new TextEncoder(); | ||
var stringBuffer = textEncoder.encode(string); | ||
@@ -33,0 +33,0 @@ byteOffset = copyPaddedArrayBufferToDataView(dataView, byteOffset, stringBuffer, padding); |
@@ -20,3 +20,3 @@ import { padTo4Bytes } from './memory-copy-utils'; | ||
export function copyPaddedStringToDataView(dataView, byteOffset, string, padding) { | ||
const textEncoder = new TextEncoder('utf8'); | ||
const textEncoder = new TextEncoder(); | ||
const stringBuffer = textEncoder.encode(string); | ||
@@ -23,0 +23,0 @@ byteOffset = copyPaddedArrayBufferToDataView(dataView, byteOffset, stringBuffer, padding); |
@@ -20,3 +20,3 @@ import { padTo4Bytes } from './memory-copy-utils'; | ||
export function copyPaddedStringToDataView(dataView, byteOffset, string, padding) { | ||
var textEncoder = new TextEncoder('utf8'); | ||
var textEncoder = new TextEncoder(); | ||
var stringBuffer = textEncoder.encode(string); | ||
@@ -23,0 +23,0 @@ byteOffset = copyPaddedArrayBufferToDataView(dataView, byteOffset, stringBuffer, padding); |
{ | ||
"name": "@loaders.gl/loader-utils", | ||
"version": "1.1.2", | ||
"version": "1.1.4", | ||
"description": "Framework-independent loaders for 3D graphics formats", | ||
@@ -36,3 +36,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "4531b976a2bf632898d13ce3690e3ac3ae31e932" | ||
"gitHead": "7d16dd0cf37da55c105626a7189f0a2c94bea283" | ||
} |
@@ -29,3 +29,3 @@ /* global TextEncoder */ | ||
export function copyPaddedStringToDataView(dataView, byteOffset, string, padding) { | ||
const textEncoder = new TextEncoder('utf8'); | ||
const textEncoder = new TextEncoder(); | ||
// PERFORMANCE IDEA: We encode twice, once to get size and once to store | ||
@@ -32,0 +32,0 @@ // PERFORMANCE IDEA: Use TextEncoder.encodeInto() to avoid temporary copy |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75442
2