@@ -68,10 +68,11 @@ export type Detail = AttributeDetail | TextDetail | TagDetail | ProcInstDetail;
68
68
* @template T - The type of detail to be read.
69
69
*/
70
70
export declare abstract class Reader < T extends Detail = Detail > {
71
+ #private;
71
72
protected data : Uint8Array ;
72
73
protected memory : WebAssembly . Memory ;
73
74
protected cache : Record < string , unknown > ;
74
- protected dataView : Uint8Array ;
75
+ get dataView ( ) : Uint8Array ;
75
76
/**
76
77
* Creates a new Reader instance.
77
78
*
@@ -124,7 +125,7 @@ export declare enum AttributeType {
124
125
* 4. 'value' bytes - byte position name_length-n (n bytes)
125
126
*/
126
127
export declare class Attribute extends Reader < AttributeDetail > implements AttributeDetail {
127
- static LENGTH : 76 ;
128
+ static LENGTH : 120 ;
128
129
type : AttributeType ;
129
130
name : Text ;
130
131
value : Text ;
@@ -179,7 +180,7 @@ export declare class Attribute extends Reader<AttributeDetail> implements Attrib
179
180
* * `ptr` - The initial pointer position.
180
181
*/
181
182
export declare class ProcInst extends Reader < ProcInstDetail > implements ProcInstDetail {
182
- static LENGTH : 88 ;
183
+ static LENGTH : 144 ;
183
184
target : Text ;
184
185
content : Text ;
185
186
constructor ( data : Uint8Array , memory : WebAssembly . Memory ) ;
@@ -226,7 +227,7 @@ export declare class ProcInst extends Reader<ProcInstDetail> implements ProcInst
226
227
* into its respective fields: `start`, `end`, and `value`.
227
228
*/
228
229
export declare class Text extends Reader < TextDetail > implements TextDetail {
229
- static LENGTH : 36 ;
230
+ static LENGTH : 56 ;
230
231
/**
231
232
* Gets the start position of the text node.
232
233
*
@@ -270,7 +271,7 @@ export declare class Text extends Reader<TextDetail> implements TextDetail {
270
271
* `closeEnd`, `selfClosing`, `name`, `attributes`, and `textNodes`.
271
272
*/
272
273
export declare class Tag extends Reader < TagDetail > implements TagDetail {
273
- static LENGTH : 82 ;
274
+ static LENGTH : 104 ;
274
275
/**
275
276
* Gets the start position of the tag opening.
276
277
*
0 commit comments