@wasm-audio-decoders/common
Advanced tools
Comparing version 2.0.1 to 3.0.0
{ | ||
"name": "@wasm-audio-decoders/common", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "Web Assembly Audio Decoders Common", | ||
@@ -5,0 +5,0 @@ "module": "index.js", |
@@ -125,4 +125,6 @@ export default class WASMAudioDecoderCommon { | ||
static inflateYencString(source, dest) { | ||
static inflateDynEncodeString(source, dest) { | ||
const output = new Uint8Array(source.length); | ||
const offset = parseInt(source.substring(11, 13), 16); | ||
const offsetReverse = 256 - offset; | ||
@@ -133,3 +135,3 @@ let escaped = false, | ||
for (let i = 0; i < source.length; i++) { | ||
for (let i = 13; i < source.length; i++) { | ||
byte = source.charCodeAt(i); | ||
@@ -147,3 +149,4 @@ | ||
output[byteIndex++] = byte < 42 && byte > 0 ? byte + 214 : byte - 42; | ||
output[byteIndex++] = | ||
byte < offset && byte > 0 ? byte + offsetReverse : byte - offset; | ||
} | ||
@@ -150,0 +153,0 @@ |
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
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
17907
523