@kreuzberg/html-to-markdown-wasm 3.6.0-rc.2 → 3.6.0-rc.21
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/package.json +1 -1
- package/pkg/bundler/html_to_markdown_wasm.d.ts +74 -10
- package/pkg/bundler/html_to_markdown_wasm.js +1 -1
- package/pkg/bundler/html_to_markdown_wasm_bg.js +458 -64
- package/pkg/bundler/html_to_markdown_wasm_bg.wasm +0 -0
- package/pkg/bundler/html_to_markdown_wasm_bg.wasm.d.ts +35 -22
- package/pkg/bundler/package.json +1 -1
- package/pkg/deno/html_to_markdown_wasm.d.ts +74 -10
- package/pkg/deno/html_to_markdown_wasm.js +458 -64
- package/pkg/deno/html_to_markdown_wasm_bg.wasm +0 -0
- package/pkg/deno/html_to_markdown_wasm_bg.wasm.d.ts +35 -22
- package/pkg/nodejs/html_to_markdown_wasm.d.ts +74 -10
- package/pkg/nodejs/html_to_markdown_wasm.js +460 -64
- package/pkg/nodejs/html_to_markdown_wasm_bg.wasm +0 -0
- package/pkg/nodejs/html_to_markdown_wasm_bg.wasm.d.ts +35 -22
- package/pkg/nodejs/package.json +1 -1
- package/pkg/web/html_to_markdown_wasm.d.ts +109 -32
- package/pkg/web/html_to_markdown_wasm.js +458 -64
- package/pkg/web/html_to_markdown_wasm_bg.wasm +0 -0
- package/pkg/web/html_to_markdown_wasm_bg.wasm.d.ts +35 -22
- package/pkg/web/package.json +1 -1
|
@@ -2090,22 +2090,6 @@ export class WasmConversionResult {
|
|
|
2090
2090
|
const ret = wasm.wasmconversionresult_document(this.__wbg_ptr);
|
|
2091
2091
|
return ret === 0 ? undefined : WasmDocumentStructure.__wrap(ret);
|
|
2092
2092
|
}
|
|
2093
|
-
/**
|
|
2094
|
-
* @returns {string[]}
|
|
2095
|
-
*/
|
|
2096
|
-
get images() {
|
|
2097
|
-
try {
|
|
2098
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2099
|
-
wasm.wasmconversionresult_images(retptr, this.__wbg_ptr);
|
|
2100
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2101
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2102
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2103
|
-
wasm.__wbindgen_export4(r0, r1 * 4, 4);
|
|
2104
|
-
return v1;
|
|
2105
|
-
} finally {
|
|
2106
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2107
|
-
}
|
|
2108
|
-
}
|
|
2109
2093
|
/**
|
|
2110
2094
|
* @returns {WasmHtmlMetadata}
|
|
2111
2095
|
*/
|
|
@@ -2155,14 +2139,6 @@ export class WasmConversionResult {
|
|
|
2155
2139
|
}
|
|
2156
2140
|
wasm.wasmconversionresult_set_document(this.__wbg_ptr, ptr0);
|
|
2157
2141
|
}
|
|
2158
|
-
/**
|
|
2159
|
-
* @param {string[]} value
|
|
2160
|
-
*/
|
|
2161
|
-
set images(value) {
|
|
2162
|
-
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2163
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2164
|
-
wasm.wasmconversionresult_set_images(this.__wbg_ptr, ptr0, len0);
|
|
2165
|
-
}
|
|
2166
2142
|
/**
|
|
2167
2143
|
* @param {WasmHtmlMetadata} value
|
|
2168
2144
|
*/
|
|
@@ -3313,6 +3289,77 @@ export class WasmHtmlMetadata {
|
|
|
3313
3289
|
}
|
|
3314
3290
|
if (Symbol.dispose) WasmHtmlMetadata.prototype[Symbol.dispose] = WasmHtmlMetadata.prototype.free;
|
|
3315
3291
|
|
|
3292
|
+
/**
|
|
3293
|
+
* Image dimensions in pixels.
|
|
3294
|
+
*
|
|
3295
|
+
* Binding-safe replacement for `(u32, u32)` tuples, which degrade to
|
|
3296
|
+
* `Vec<Vec<String>>` when sanitized for cross-language binding generation.
|
|
3297
|
+
* Used by both `ImageMetadata` and
|
|
3298
|
+
* `InlineImage`.
|
|
3299
|
+
*/
|
|
3300
|
+
export class WasmImageDimensions {
|
|
3301
|
+
static __wrap(ptr) {
|
|
3302
|
+
const obj = Object.create(WasmImageDimensions.prototype);
|
|
3303
|
+
obj.__wbg_ptr = ptr;
|
|
3304
|
+
WasmImageDimensionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3305
|
+
return obj;
|
|
3306
|
+
}
|
|
3307
|
+
__destroy_into_raw() {
|
|
3308
|
+
const ptr = this.__wbg_ptr;
|
|
3309
|
+
this.__wbg_ptr = 0;
|
|
3310
|
+
WasmImageDimensionsFinalization.unregister(this);
|
|
3311
|
+
return ptr;
|
|
3312
|
+
}
|
|
3313
|
+
free() {
|
|
3314
|
+
const ptr = this.__destroy_into_raw();
|
|
3315
|
+
wasm.__wbg_wasmimagedimensions_free(ptr, 0);
|
|
3316
|
+
}
|
|
3317
|
+
/**
|
|
3318
|
+
* @returns {WasmImageDimensions}
|
|
3319
|
+
*/
|
|
3320
|
+
static default() {
|
|
3321
|
+
const ret = wasm.wasmimagedimensions_default();
|
|
3322
|
+
return WasmImageDimensions.__wrap(ret);
|
|
3323
|
+
}
|
|
3324
|
+
/**
|
|
3325
|
+
* @returns {number}
|
|
3326
|
+
*/
|
|
3327
|
+
get height() {
|
|
3328
|
+
const ret = wasm.wasmimagedimensions_height(this.__wbg_ptr);
|
|
3329
|
+
return ret >>> 0;
|
|
3330
|
+
}
|
|
3331
|
+
/**
|
|
3332
|
+
* @param {number} width
|
|
3333
|
+
* @param {number} height
|
|
3334
|
+
*/
|
|
3335
|
+
constructor(width, height) {
|
|
3336
|
+
const ret = wasm.wasmimagedimensions_new(width, height);
|
|
3337
|
+
this.__wbg_ptr = ret;
|
|
3338
|
+
WasmImageDimensionsFinalization.register(this, this.__wbg_ptr, this);
|
|
3339
|
+
return this;
|
|
3340
|
+
}
|
|
3341
|
+
/**
|
|
3342
|
+
* @param {number} value
|
|
3343
|
+
*/
|
|
3344
|
+
set height(value) {
|
|
3345
|
+
wasm.wasmimagedimensions_set_height(this.__wbg_ptr, value);
|
|
3346
|
+
}
|
|
3347
|
+
/**
|
|
3348
|
+
* @param {number} value
|
|
3349
|
+
*/
|
|
3350
|
+
set width(value) {
|
|
3351
|
+
wasm.wasmimagedimensions_set_width(this.__wbg_ptr, value);
|
|
3352
|
+
}
|
|
3353
|
+
/**
|
|
3354
|
+
* @returns {number}
|
|
3355
|
+
*/
|
|
3356
|
+
get width() {
|
|
3357
|
+
const ret = wasm.wasmimagedimensions_width(this.__wbg_ptr);
|
|
3358
|
+
return ret >>> 0;
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
if (Symbol.dispose) WasmImageDimensions.prototype[Symbol.dispose] = WasmImageDimensions.prototype.free;
|
|
3362
|
+
|
|
3316
3363
|
/**
|
|
3317
3364
|
* Image metadata with source and dimensions.
|
|
3318
3365
|
*
|
|
@@ -3378,23 +3425,11 @@ export class WasmImageMetadata {
|
|
|
3378
3425
|
return WasmImageMetadata.__wrap(ret);
|
|
3379
3426
|
}
|
|
3380
3427
|
/**
|
|
3381
|
-
* @returns {
|
|
3428
|
+
* @returns {WasmImageDimensions | undefined}
|
|
3382
3429
|
*/
|
|
3383
3430
|
get dimensions() {
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
wasm.wasmimagemetadata_dimensions(retptr, this.__wbg_ptr);
|
|
3387
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3388
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3389
|
-
let v1;
|
|
3390
|
-
if (r0 !== 0) {
|
|
3391
|
-
v1 = getArrayU32FromWasm0(r0, r1).slice();
|
|
3392
|
-
wasm.__wbindgen_export4(r0, r1 * 4, 4);
|
|
3393
|
-
}
|
|
3394
|
-
return v1;
|
|
3395
|
-
} finally {
|
|
3396
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3397
|
-
}
|
|
3431
|
+
const ret = wasm.wasmimagemetadata_dimensions(this.__wbg_ptr);
|
|
3432
|
+
return ret === 0 ? undefined : WasmImageDimensions.__wrap(ret);
|
|
3398
3433
|
}
|
|
3399
3434
|
/**
|
|
3400
3435
|
* @returns {string}
|
|
@@ -3421,7 +3456,7 @@ export class WasmImageMetadata {
|
|
|
3421
3456
|
* @param {any} attributes
|
|
3422
3457
|
* @param {string | null} [alt]
|
|
3423
3458
|
* @param {string | null} [title]
|
|
3424
|
-
* @param {
|
|
3459
|
+
* @param {WasmImageDimensions | null} [dimensions]
|
|
3425
3460
|
*/
|
|
3426
3461
|
constructor(src, imageType, attributes, alt, title, dimensions) {
|
|
3427
3462
|
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -3430,9 +3465,12 @@ export class WasmImageMetadata {
|
|
|
3430
3465
|
var len1 = WASM_VECTOR_LEN;
|
|
3431
3466
|
var ptr2 = isLikeNone(title) ? 0 : passStringToWasm0(title, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3432
3467
|
var len2 = WASM_VECTOR_LEN;
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3468
|
+
let ptr3 = 0;
|
|
3469
|
+
if (!isLikeNone(dimensions)) {
|
|
3470
|
+
_assertClass(dimensions, WasmImageDimensions);
|
|
3471
|
+
ptr3 = dimensions.__destroy_into_raw();
|
|
3472
|
+
}
|
|
3473
|
+
const ret = wasm.wasmimagemetadata_new(ptr0, len0, imageType, addHeapObject(attributes), ptr1, len1, ptr2, len2, ptr3);
|
|
3436
3474
|
this.__wbg_ptr = ret;
|
|
3437
3475
|
WasmImageMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
3438
3476
|
return this;
|
|
@@ -3452,12 +3490,15 @@ export class WasmImageMetadata {
|
|
|
3452
3490
|
wasm.wasmimagemetadata_set_attributes(this.__wbg_ptr, addHeapObject(value));
|
|
3453
3491
|
}
|
|
3454
3492
|
/**
|
|
3455
|
-
* @param {
|
|
3493
|
+
* @param {WasmImageDimensions | null} [value]
|
|
3456
3494
|
*/
|
|
3457
3495
|
set dimensions(value) {
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3496
|
+
let ptr0 = 0;
|
|
3497
|
+
if (!isLikeNone(value)) {
|
|
3498
|
+
_assertClass(value, WasmImageDimensions);
|
|
3499
|
+
ptr0 = value.__destroy_into_raw();
|
|
3500
|
+
}
|
|
3501
|
+
wasm.wasmimagemetadata_set_dimensions(this.__wbg_ptr, ptr0);
|
|
3461
3502
|
}
|
|
3462
3503
|
/**
|
|
3463
3504
|
* @param {WasmImageType} value
|
|
@@ -3778,6 +3819,114 @@ export const WasmListIndentType = Object.freeze({
|
|
|
3778
3819
|
Tabs: 1, "1": "Tabs",
|
|
3779
3820
|
});
|
|
3780
3821
|
|
|
3822
|
+
/**
|
|
3823
|
+
* A single key-value metadata entry from `<head>` meta tags.
|
|
3824
|
+
*
|
|
3825
|
+
* Binding-safe replacement for `(String, String)` tuples used in
|
|
3826
|
+
* `NodeContent.MetadataBlock`. Tuple pairs cannot be represented
|
|
3827
|
+
* across language boundaries without lossy degradation.
|
|
3828
|
+
*/
|
|
3829
|
+
export class WasmMetadataEntry {
|
|
3830
|
+
static __wrap(ptr) {
|
|
3831
|
+
const obj = Object.create(WasmMetadataEntry.prototype);
|
|
3832
|
+
obj.__wbg_ptr = ptr;
|
|
3833
|
+
WasmMetadataEntryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3834
|
+
return obj;
|
|
3835
|
+
}
|
|
3836
|
+
static __unwrap(jsValue) {
|
|
3837
|
+
if (!(jsValue instanceof WasmMetadataEntry)) {
|
|
3838
|
+
return 0;
|
|
3839
|
+
}
|
|
3840
|
+
return jsValue.__destroy_into_raw();
|
|
3841
|
+
}
|
|
3842
|
+
__destroy_into_raw() {
|
|
3843
|
+
const ptr = this.__wbg_ptr;
|
|
3844
|
+
this.__wbg_ptr = 0;
|
|
3845
|
+
WasmMetadataEntryFinalization.unregister(this);
|
|
3846
|
+
return ptr;
|
|
3847
|
+
}
|
|
3848
|
+
free() {
|
|
3849
|
+
const ptr = this.__destroy_into_raw();
|
|
3850
|
+
wasm.__wbg_wasmmetadataentry_free(ptr, 0);
|
|
3851
|
+
}
|
|
3852
|
+
/**
|
|
3853
|
+
* @returns {WasmMetadataEntry}
|
|
3854
|
+
*/
|
|
3855
|
+
static default() {
|
|
3856
|
+
const ret = wasm.wasmmetadataentry_default();
|
|
3857
|
+
return WasmMetadataEntry.__wrap(ret);
|
|
3858
|
+
}
|
|
3859
|
+
/**
|
|
3860
|
+
* @returns {string}
|
|
3861
|
+
*/
|
|
3862
|
+
get key() {
|
|
3863
|
+
let deferred1_0;
|
|
3864
|
+
let deferred1_1;
|
|
3865
|
+
try {
|
|
3866
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3867
|
+
wasm.wasmmetadataentry_key(retptr, this.__wbg_ptr);
|
|
3868
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3869
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3870
|
+
deferred1_0 = r0;
|
|
3871
|
+
deferred1_1 = r1;
|
|
3872
|
+
return getStringFromWasm0(r0, r1);
|
|
3873
|
+
} finally {
|
|
3874
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3875
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
3876
|
+
}
|
|
3877
|
+
}
|
|
3878
|
+
/**
|
|
3879
|
+
* @param {string} key
|
|
3880
|
+
* @param {string} value
|
|
3881
|
+
*/
|
|
3882
|
+
constructor(key, value) {
|
|
3883
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3884
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3885
|
+
const ptr1 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3886
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3887
|
+
const ret = wasm.wasmmetadataentry_new(ptr0, len0, ptr1, len1);
|
|
3888
|
+
this.__wbg_ptr = ret;
|
|
3889
|
+
WasmMetadataEntryFinalization.register(this, this.__wbg_ptr, this);
|
|
3890
|
+
return this;
|
|
3891
|
+
}
|
|
3892
|
+
/**
|
|
3893
|
+
* @param {string} value
|
|
3894
|
+
*/
|
|
3895
|
+
set key(value) {
|
|
3896
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3897
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3898
|
+
wasm.wasmmetadataentry_set_key(this.__wbg_ptr, ptr0, len0);
|
|
3899
|
+
}
|
|
3900
|
+
/**
|
|
3901
|
+
* @param {string} value
|
|
3902
|
+
*/
|
|
3903
|
+
set value(value) {
|
|
3904
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3905
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3906
|
+
wasm.wasmmetadataentry_set_value(this.__wbg_ptr, ptr0, len0);
|
|
3907
|
+
}
|
|
3908
|
+
/**
|
|
3909
|
+
* @returns {string}
|
|
3910
|
+
*/
|
|
3911
|
+
get value() {
|
|
3912
|
+
let deferred1_0;
|
|
3913
|
+
let deferred1_1;
|
|
3914
|
+
try {
|
|
3915
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3916
|
+
wasm.wasmmetadataentry_value(retptr, this.__wbg_ptr);
|
|
3917
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3918
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3919
|
+
deferred1_0 = r0;
|
|
3920
|
+
deferred1_1 = r1;
|
|
3921
|
+
return getStringFromWasm0(r0, r1);
|
|
3922
|
+
} finally {
|
|
3923
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3924
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
if (Symbol.dispose) WasmMetadataEntry.prototype[Symbol.dispose] = WasmMetadataEntry.prototype.free;
|
|
3929
|
+
|
|
3781
3930
|
/**
|
|
3782
3931
|
* Line break syntax in Markdown output.
|
|
3783
3932
|
*
|
|
@@ -3876,11 +4025,23 @@ export class WasmNodeContent {
|
|
|
3876
4025
|
}
|
|
3877
4026
|
}
|
|
3878
4027
|
/**
|
|
3879
|
-
* @returns {
|
|
4028
|
+
* @returns {WasmMetadataEntry[] | undefined}
|
|
3880
4029
|
*/
|
|
3881
4030
|
get entries() {
|
|
3882
|
-
|
|
3883
|
-
|
|
4031
|
+
try {
|
|
4032
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4033
|
+
wasm.wasmnodecontent_entries(retptr, this.__wbg_ptr);
|
|
4034
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4035
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4036
|
+
let v1;
|
|
4037
|
+
if (r0 !== 0) {
|
|
4038
|
+
v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
4039
|
+
wasm.__wbindgen_export4(r0, r1 * 4, 4);
|
|
4040
|
+
}
|
|
4041
|
+
return v1;
|
|
4042
|
+
} finally {
|
|
4043
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4044
|
+
}
|
|
3884
4045
|
}
|
|
3885
4046
|
/**
|
|
3886
4047
|
* @returns {string | undefined}
|
|
@@ -4043,10 +4204,12 @@ export class WasmNodeContent {
|
|
|
4043
4204
|
wasm.wasmnodecontent_set_description(this.__wbg_ptr, ptr0, len0);
|
|
4044
4205
|
}
|
|
4045
4206
|
/**
|
|
4046
|
-
* @param {
|
|
4207
|
+
* @param {WasmMetadataEntry[] | null} [value]
|
|
4047
4208
|
*/
|
|
4048
4209
|
set entries(value) {
|
|
4049
|
-
|
|
4210
|
+
var ptr0 = isLikeNone(value) ? 0 : passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
4211
|
+
var len0 = WASM_VECTOR_LEN;
|
|
4212
|
+
wasm.wasmnodecontent_set_entries(this.__wbg_ptr, ptr0, len0);
|
|
4050
4213
|
}
|
|
4051
4214
|
/**
|
|
4052
4215
|
* @param {string | null} [value]
|
|
@@ -4211,7 +4374,21 @@ if (Symbol.dispose) WasmNodeContent.prototype[Symbol.dispose] = WasmNodeContent.
|
|
|
4211
4374
|
* Context information passed to all visitor methods.
|
|
4212
4375
|
*
|
|
4213
4376
|
* Provides comprehensive metadata about the current node being visited,
|
|
4214
|
-
* including its type,
|
|
4377
|
+
* including its type, tag name, position in the DOM tree, and parent context.
|
|
4378
|
+
*
|
|
4379
|
+
* ## Attributes
|
|
4380
|
+
*
|
|
4381
|
+
* Access attributes via `NodeContext.attributes`, which returns
|
|
4382
|
+
* `&BTreeMap<String, String>`. When the context was built with
|
|
4383
|
+
* `NodeContext.with_lazy_attributes` (the hot path inside the converter),
|
|
4384
|
+
* the map is only materialized on the first call — if the visitor never reads
|
|
4385
|
+
* attributes, the allocation is skipped.
|
|
4386
|
+
*
|
|
4387
|
+
* ## Lifetimes
|
|
4388
|
+
*
|
|
4389
|
+
* String fields use `Cow<'_, str>` so the converter can pass slices directly
|
|
4390
|
+
* out of the parsed DOM without allocating. Visitor implementations that need
|
|
4391
|
+
* to outlive the callback should call `NodeContext.into_owned`.
|
|
4215
4392
|
*/
|
|
4216
4393
|
export class WasmNodeContext {
|
|
4217
4394
|
static __wrap(ptr) {
|
|
@@ -4231,9 +4408,14 @@ export class WasmNodeContext {
|
|
|
4231
4408
|
wasm.__wbg_wasmnodecontext_free(ptr, 0);
|
|
4232
4409
|
}
|
|
4233
4410
|
/**
|
|
4411
|
+
* Return a reference to the attribute map.
|
|
4412
|
+
*
|
|
4413
|
+
* If the context was built with `NodeContext.with_lazy_attributes`, the
|
|
4414
|
+
* map is materialized on the first call and cached for subsequent calls.
|
|
4415
|
+
* If this method is never called, no allocation occurs for attributes.
|
|
4234
4416
|
* @returns {any}
|
|
4235
4417
|
*/
|
|
4236
|
-
|
|
4418
|
+
attributes() {
|
|
4237
4419
|
const ret = wasm.wasmnodecontext_attributes(this.__wbg_ptr);
|
|
4238
4420
|
return takeObject(ret);
|
|
4239
4421
|
}
|
|
@@ -4258,6 +4440,14 @@ export class WasmNodeContext {
|
|
|
4258
4440
|
const ret = wasm.wasmnodecontext_indexInParent(this.__wbg_ptr);
|
|
4259
4441
|
return ret >>> 0;
|
|
4260
4442
|
}
|
|
4443
|
+
/**
|
|
4444
|
+
* Promote any borrowed fields into owned storage so the context can outlive `'a`.
|
|
4445
|
+
* @returns {WasmNodeContext}
|
|
4446
|
+
*/
|
|
4447
|
+
intoOwned() {
|
|
4448
|
+
const ret = wasm.wasmnodecontext_intoOwned(this.__wbg_ptr);
|
|
4449
|
+
return WasmNodeContext.__wrap(ret);
|
|
4450
|
+
}
|
|
4261
4451
|
/**
|
|
4262
4452
|
* @returns {boolean}
|
|
4263
4453
|
*/
|
|
@@ -4268,18 +4458,17 @@ export class WasmNodeContext {
|
|
|
4268
4458
|
/**
|
|
4269
4459
|
* @param {WasmNodeType} nodeType
|
|
4270
4460
|
* @param {string} tagName
|
|
4271
|
-
* @param {any} attributes
|
|
4272
4461
|
* @param {number} depth
|
|
4273
4462
|
* @param {number} indexInParent
|
|
4274
4463
|
* @param {boolean} isInline
|
|
4275
4464
|
* @param {string | null} [parentTag]
|
|
4276
4465
|
*/
|
|
4277
|
-
constructor(nodeType, tagName,
|
|
4466
|
+
constructor(nodeType, tagName, depth, indexInParent, isInline, parentTag) {
|
|
4278
4467
|
const ptr0 = passStringToWasm0(tagName, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4279
4468
|
const len0 = WASM_VECTOR_LEN;
|
|
4280
4469
|
var ptr1 = isLikeNone(parentTag) ? 0 : passStringToWasm0(parentTag, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4281
4470
|
var len1 = WASM_VECTOR_LEN;
|
|
4282
|
-
const ret = wasm.wasmnodecontext_new(nodeType, ptr0, len0,
|
|
4471
|
+
const ret = wasm.wasmnodecontext_new(nodeType, ptr0, len0, depth, indexInParent, isInline, ptr1, len1);
|
|
4283
4472
|
this.__wbg_ptr = ret;
|
|
4284
4473
|
WasmNodeContextFinalization.register(this, this.__wbg_ptr, this);
|
|
4285
4474
|
return this;
|
|
@@ -4322,12 +4511,6 @@ export class WasmNodeContext {
|
|
|
4322
4511
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4323
4512
|
}
|
|
4324
4513
|
}
|
|
4325
|
-
/**
|
|
4326
|
-
* @param {any} value
|
|
4327
|
-
*/
|
|
4328
|
-
set attributes(value) {
|
|
4329
|
-
wasm.wasmnodecontext_set_attributes(this.__wbg_ptr, addHeapObject(value));
|
|
4330
|
-
}
|
|
4331
4514
|
/**
|
|
4332
4515
|
* @param {number} value
|
|
4333
4516
|
*/
|
|
@@ -4387,6 +4570,28 @@ export class WasmNodeContext {
|
|
|
4387
4570
|
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
4388
4571
|
}
|
|
4389
4572
|
}
|
|
4573
|
+
/**
|
|
4574
|
+
* Construct a `NodeContext` with an owned attribute map.
|
|
4575
|
+
*
|
|
4576
|
+
* Prefer `NodeContext.with_lazy_attributes` (pub(crate)) inside the
|
|
4577
|
+
* converter to avoid the eager `collect_tag_attributes` allocation.
|
|
4578
|
+
* @param {WasmNodeType} node_type
|
|
4579
|
+
* @param {string} tag_name
|
|
4580
|
+
* @param {any} attributes
|
|
4581
|
+
* @param {number} depth
|
|
4582
|
+
* @param {number} index_in_parent
|
|
4583
|
+
* @param {string | null | undefined} parent_tag
|
|
4584
|
+
* @param {boolean} is_inline
|
|
4585
|
+
* @returns {WasmNodeContext}
|
|
4586
|
+
*/
|
|
4587
|
+
static withOwnedAttributes(node_type, tag_name, attributes, depth, index_in_parent, parent_tag, is_inline) {
|
|
4588
|
+
const ptr0 = passStringToWasm0(tag_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4589
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4590
|
+
var ptr1 = isLikeNone(parent_tag) ? 0 : passStringToWasm0(parent_tag, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4591
|
+
var len1 = WASM_VECTOR_LEN;
|
|
4592
|
+
const ret = wasm.wasmnodecontext_withOwnedAttributes(node_type, ptr0, len0, addHeapObject(attributes), depth, index_in_parent, ptr1, len1, is_inline);
|
|
4593
|
+
return WasmNodeContext.__wrap(ret);
|
|
4594
|
+
}
|
|
4390
4595
|
}
|
|
4391
4596
|
if (Symbol.dispose) WasmNodeContext.prototype[Symbol.dispose] = WasmNodeContext.prototype.free;
|
|
4392
4597
|
|
|
@@ -4843,7 +5048,7 @@ export class WasmProcessingWarning {
|
|
|
4843
5048
|
if (Symbol.dispose) WasmProcessingWarning.prototype[Symbol.dispose] = WasmProcessingWarning.prototype.free;
|
|
4844
5049
|
|
|
4845
5050
|
/**
|
|
4846
|
-
* Structured data block (JSON-LD, Microdata, or RDFa).
|
|
5051
|
+
* Structured data block (JSON-LD, Microdata, or `RDFa`).
|
|
4847
5052
|
*
|
|
4848
5053
|
* Represents machine-readable structured data found in the document.
|
|
4849
5054
|
* JSON-LD blocks are collected as raw JSON strings for flexibility.
|
|
@@ -5438,6 +5643,22 @@ export function convert(html, options) {
|
|
|
5438
5643
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5439
5644
|
}
|
|
5440
5645
|
}
|
|
5646
|
+
export function __wbg_Error_ef53bc310eb298a0(arg0, arg1) {
|
|
5647
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
5648
|
+
return addHeapObject(ret);
|
|
5649
|
+
}
|
|
5650
|
+
export function __wbg___wbindgen_boolean_get_1a45e2c38d4d41b9(arg0) {
|
|
5651
|
+
const v = getObject(arg0);
|
|
5652
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
5653
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
5654
|
+
}
|
|
5655
|
+
export function __wbg___wbindgen_debug_string_0accd80f45e5faa2(arg0, arg1) {
|
|
5656
|
+
const ret = debugString(getObject(arg1));
|
|
5657
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5658
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5659
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5660
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5661
|
+
}
|
|
5441
5662
|
export function __wbg___wbindgen_is_function_754e9f305ff6029e(arg0) {
|
|
5442
5663
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
5443
5664
|
return ret;
|
|
@@ -5451,6 +5672,16 @@ export function __wbg___wbindgen_is_undefined_67b456be8673d3d7(arg0) {
|
|
|
5451
5672
|
const ret = getObject(arg0) === undefined;
|
|
5452
5673
|
return ret;
|
|
5453
5674
|
}
|
|
5675
|
+
export function __wbg___wbindgen_jsval_loose_eq_2c56564c75129511(arg0, arg1) {
|
|
5676
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
5677
|
+
return ret;
|
|
5678
|
+
}
|
|
5679
|
+
export function __wbg___wbindgen_number_get_9bb1761122181af2(arg0, arg1) {
|
|
5680
|
+
const obj = getObject(arg1);
|
|
5681
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
5682
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
5683
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
5684
|
+
}
|
|
5454
5685
|
export function __wbg___wbindgen_string_get_72bdf95d3ae505b1(arg0, arg1) {
|
|
5455
5686
|
const obj = getObject(arg1);
|
|
5456
5687
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -5466,14 +5697,78 @@ export function __wbg_apply_292b6d94e4f92b15() { return handleError(function (ar
|
|
|
5466
5697
|
const ret = getObject(arg0).apply(getObject(arg1), getObject(arg2));
|
|
5467
5698
|
return addHeapObject(ret);
|
|
5468
5699
|
}, arguments); }
|
|
5700
|
+
export function __wbg_call_8a89609d89f6608a() { return handleError(function (arg0, arg1) {
|
|
5701
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
5702
|
+
return addHeapObject(ret);
|
|
5703
|
+
}, arguments); }
|
|
5704
|
+
export function __wbg_done_60cf307fcc680536(arg0) {
|
|
5705
|
+
const ret = getObject(arg0).done;
|
|
5706
|
+
return ret;
|
|
5707
|
+
}
|
|
5708
|
+
export function __wbg_entries_04b37a02507f1713(arg0) {
|
|
5709
|
+
const ret = Object.entries(getObject(arg0));
|
|
5710
|
+
return addHeapObject(ret);
|
|
5711
|
+
}
|
|
5712
|
+
export function __wbg_get_1f8f054ddbaa7db2() { return handleError(function (arg0, arg1) {
|
|
5713
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
5714
|
+
return addHeapObject(ret);
|
|
5715
|
+
}, arguments); }
|
|
5716
|
+
export function __wbg_get_2b48c7d0d006a781(arg0, arg1) {
|
|
5717
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5718
|
+
return addHeapObject(ret);
|
|
5719
|
+
}
|
|
5469
5720
|
export function __wbg_get_de6a0f7d4d18a304() { return handleError(function (arg0, arg1) {
|
|
5470
5721
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
5471
5722
|
return addHeapObject(ret);
|
|
5472
5723
|
}, arguments); }
|
|
5724
|
+
export function __wbg_get_unchecked_33f6e5c9e2f2d6b2(arg0, arg1) {
|
|
5725
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5726
|
+
return addHeapObject(ret);
|
|
5727
|
+
}
|
|
5473
5728
|
export function __wbg_has_73740b27f436fed3() { return handleError(function (arg0, arg1) {
|
|
5474
5729
|
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
5475
5730
|
return ret;
|
|
5476
5731
|
}, arguments); }
|
|
5732
|
+
export function __wbg_instanceof_ArrayBuffer_8f49811467741499(arg0) {
|
|
5733
|
+
let result;
|
|
5734
|
+
try {
|
|
5735
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
5736
|
+
} catch (_) {
|
|
5737
|
+
result = false;
|
|
5738
|
+
}
|
|
5739
|
+
const ret = result;
|
|
5740
|
+
return ret;
|
|
5741
|
+
}
|
|
5742
|
+
export function __wbg_instanceof_Uint8Array_86f30649f63ef9c2(arg0) {
|
|
5743
|
+
let result;
|
|
5744
|
+
try {
|
|
5745
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
5746
|
+
} catch (_) {
|
|
5747
|
+
result = false;
|
|
5748
|
+
}
|
|
5749
|
+
const ret = result;
|
|
5750
|
+
return ret;
|
|
5751
|
+
}
|
|
5752
|
+
export function __wbg_iterator_8732428d309e270e() {
|
|
5753
|
+
const ret = Symbol.iterator;
|
|
5754
|
+
return addHeapObject(ret);
|
|
5755
|
+
}
|
|
5756
|
+
export function __wbg_length_4a591ecaa01354d9(arg0) {
|
|
5757
|
+
const ret = getObject(arg0).length;
|
|
5758
|
+
return ret;
|
|
5759
|
+
}
|
|
5760
|
+
export function __wbg_length_66f1a4b2e9026940(arg0) {
|
|
5761
|
+
const ret = getObject(arg0).length;
|
|
5762
|
+
return ret;
|
|
5763
|
+
}
|
|
5764
|
+
export function __wbg_new_578aeef4b6b94378(arg0) {
|
|
5765
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
5766
|
+
return addHeapObject(ret);
|
|
5767
|
+
}
|
|
5768
|
+
export function __wbg_new_622fc80556be2e26() {
|
|
5769
|
+
const ret = new Map();
|
|
5770
|
+
return addHeapObject(ret);
|
|
5771
|
+
}
|
|
5477
5772
|
export function __wbg_new_ce1ab61c1c2b300d() {
|
|
5478
5773
|
const ret = new Object();
|
|
5479
5774
|
return addHeapObject(ret);
|
|
@@ -5482,10 +5777,21 @@ export function __wbg_new_d90091b82fdf5b91() {
|
|
|
5482
5777
|
const ret = new Array();
|
|
5483
5778
|
return addHeapObject(ret);
|
|
5484
5779
|
}
|
|
5780
|
+
export function __wbg_next_9e03acdf51c4960d(arg0) {
|
|
5781
|
+
const ret = getObject(arg0).next;
|
|
5782
|
+
return addHeapObject(ret);
|
|
5783
|
+
}
|
|
5784
|
+
export function __wbg_next_eb8ca7351fa27906() { return handleError(function (arg0) {
|
|
5785
|
+
const ret = getObject(arg0).next();
|
|
5786
|
+
return addHeapObject(ret);
|
|
5787
|
+
}, arguments); }
|
|
5485
5788
|
export function __wbg_parse_03863847d06c4e89() { return handleError(function (arg0, arg1) {
|
|
5486
5789
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
5487
5790
|
return addHeapObject(ret);
|
|
5488
5791
|
}, arguments); }
|
|
5792
|
+
export function __wbg_prototypesetcall_3249fc62a0fafa30(arg0, arg1, arg2) {
|
|
5793
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
5794
|
+
}
|
|
5489
5795
|
export function __wbg_push_a6822215aa43e71c(arg0, arg1) {
|
|
5490
5796
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
5491
5797
|
return ret;
|
|
@@ -5500,6 +5806,10 @@ export function __wbg_set_6e30c9374c26414c() { return handleError(function (arg0
|
|
|
5500
5806
|
export function __wbg_set_dca99999bba88a9a(arg0, arg1, arg2) {
|
|
5501
5807
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
5502
5808
|
}
|
|
5809
|
+
export function __wbg_value_f3625092ee4b37f4(arg0) {
|
|
5810
|
+
const ret = getObject(arg0).value;
|
|
5811
|
+
return addHeapObject(ret);
|
|
5812
|
+
}
|
|
5503
5813
|
export function __wbg_wasmdocumentnode_new(arg0) {
|
|
5504
5814
|
const ret = WasmDocumentNode.__wrap(arg0);
|
|
5505
5815
|
return addHeapObject(ret);
|
|
@@ -5540,6 +5850,14 @@ export function __wbg_wasmlinkmetadata_unwrap(arg0) {
|
|
|
5540
5850
|
const ret = WasmLinkMetadata.__unwrap(getObject(arg0));
|
|
5541
5851
|
return ret;
|
|
5542
5852
|
}
|
|
5853
|
+
export function __wbg_wasmmetadataentry_new(arg0) {
|
|
5854
|
+
const ret = WasmMetadataEntry.__wrap(arg0);
|
|
5855
|
+
return addHeapObject(ret);
|
|
5856
|
+
}
|
|
5857
|
+
export function __wbg_wasmmetadataentry_unwrap(arg0) {
|
|
5858
|
+
const ret = WasmMetadataEntry.__unwrap(getObject(arg0));
|
|
5859
|
+
return ret;
|
|
5860
|
+
}
|
|
5543
5861
|
export function __wbg_wasmprocessingwarning_new(arg0) {
|
|
5544
5862
|
const ret = WasmProcessingWarning.__wrap(arg0);
|
|
5545
5863
|
return addHeapObject(ret);
|
|
@@ -5619,12 +5937,18 @@ const WasmHeaderMetadataFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
5619
5937
|
const WasmHtmlMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5620
5938
|
? { register: () => {}, unregister: () => {} }
|
|
5621
5939
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlmetadata_free(ptr, 1));
|
|
5940
|
+
const WasmImageDimensionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5941
|
+
? { register: () => {}, unregister: () => {} }
|
|
5942
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmimagedimensions_free(ptr, 1));
|
|
5622
5943
|
const WasmImageMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5623
5944
|
? { register: () => {}, unregister: () => {} }
|
|
5624
5945
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmimagemetadata_free(ptr, 1));
|
|
5625
5946
|
const WasmLinkMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5626
5947
|
? { register: () => {}, unregister: () => {} }
|
|
5627
5948
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmlinkmetadata_free(ptr, 1));
|
|
5949
|
+
const WasmMetadataEntryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5950
|
+
? { register: () => {}, unregister: () => {} }
|
|
5951
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmmetadataentry_free(ptr, 1));
|
|
5628
5952
|
const WasmNodeContentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5629
5953
|
? { register: () => {}, unregister: () => {} }
|
|
5630
5954
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmnodecontent_free(ptr, 1));
|
|
@@ -5671,6 +5995,71 @@ function _assertClass(instance, klass) {
|
|
|
5671
5995
|
}
|
|
5672
5996
|
}
|
|
5673
5997
|
|
|
5998
|
+
function debugString(val) {
|
|
5999
|
+
// primitive types
|
|
6000
|
+
const type = typeof val;
|
|
6001
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
6002
|
+
return `${val}`;
|
|
6003
|
+
}
|
|
6004
|
+
if (type == 'string') {
|
|
6005
|
+
return `"${val}"`;
|
|
6006
|
+
}
|
|
6007
|
+
if (type == 'symbol') {
|
|
6008
|
+
const description = val.description;
|
|
6009
|
+
if (description == null) {
|
|
6010
|
+
return 'Symbol';
|
|
6011
|
+
} else {
|
|
6012
|
+
return `Symbol(${description})`;
|
|
6013
|
+
}
|
|
6014
|
+
}
|
|
6015
|
+
if (type == 'function') {
|
|
6016
|
+
const name = val.name;
|
|
6017
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
6018
|
+
return `Function(${name})`;
|
|
6019
|
+
} else {
|
|
6020
|
+
return 'Function';
|
|
6021
|
+
}
|
|
6022
|
+
}
|
|
6023
|
+
// objects
|
|
6024
|
+
if (Array.isArray(val)) {
|
|
6025
|
+
const length = val.length;
|
|
6026
|
+
let debug = '[';
|
|
6027
|
+
if (length > 0) {
|
|
6028
|
+
debug += debugString(val[0]);
|
|
6029
|
+
}
|
|
6030
|
+
for(let i = 1; i < length; i++) {
|
|
6031
|
+
debug += ', ' + debugString(val[i]);
|
|
6032
|
+
}
|
|
6033
|
+
debug += ']';
|
|
6034
|
+
return debug;
|
|
6035
|
+
}
|
|
6036
|
+
// Test for built-in
|
|
6037
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
6038
|
+
let className;
|
|
6039
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
6040
|
+
className = builtInMatches[1];
|
|
6041
|
+
} else {
|
|
6042
|
+
// Failed to match the standard '[object ClassName]'
|
|
6043
|
+
return toString.call(val);
|
|
6044
|
+
}
|
|
6045
|
+
if (className == 'Object') {
|
|
6046
|
+
// we're a user defined class or Object
|
|
6047
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
6048
|
+
// easier than looping through ownProperties of `val`.
|
|
6049
|
+
try {
|
|
6050
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
6051
|
+
} catch (_) {
|
|
6052
|
+
return 'Object';
|
|
6053
|
+
}
|
|
6054
|
+
}
|
|
6055
|
+
// errors
|
|
6056
|
+
if (val instanceof Error) {
|
|
6057
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
6058
|
+
}
|
|
6059
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
6060
|
+
return className;
|
|
6061
|
+
}
|
|
6062
|
+
|
|
5674
6063
|
function dropObject(idx) {
|
|
5675
6064
|
if (idx < 1028) return;
|
|
5676
6065
|
heap[idx] = heap_next;
|
|
@@ -5692,6 +6081,11 @@ function getArrayU32FromWasm0(ptr, len) {
|
|
|
5692
6081
|
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
5693
6082
|
}
|
|
5694
6083
|
|
|
6084
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
6085
|
+
ptr = ptr >>> 0;
|
|
6086
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
6087
|
+
}
|
|
6088
|
+
|
|
5695
6089
|
let cachedDataViewMemory0 = null;
|
|
5696
6090
|
function getDataViewMemory0() {
|
|
5697
6091
|
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|