Skip to content

Commit

Permalink
Merge cd32a22 into 7bd27c1
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Wilaby committed Feb 4, 2019
2 parents 7bd27c1 + cd32a22 commit 96ba5e9
Show file tree
Hide file tree
Showing 8 changed files with 129 additions and 155 deletions.
Binary file modified lib/sax-wasm.wasm
Binary file not shown.
10 changes: 5 additions & 5 deletions lib/saxWasm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export declare class SaxEventType {
static CloseCDATA: number;
}
declare abstract class Reader<T> {
constructor(buf: Uint8Array, ptr: number);
protected abstract read(buf: Uint8Array, ptr: number): void;
constructor(buf: Uint32Array, ptr?: number);
protected abstract read(buf: Uint32Array, ptr: number): void;
}
export declare class Position {
line: number;
Expand All @@ -29,14 +29,14 @@ export declare class Attribute extends Reader<string | number | Position> {
valueStart: Position;
name: string;
value: string;
protected read(buf: Uint8Array, ptr: number): void;
protected read(buf: Uint32Array, ptr: number): void;
}
export declare class Text extends Reader<string | Position> {
static BYTES_IN_DESCRIPTOR: number;
end: Position;
start: Position;
value: string;
protected read(buf: Uint8Array, ptr: number): void;
protected read(buf: Uint32Array, ptr: number): void;
}
export declare class Tag extends Reader<Attribute[] | Text[] | Position | string | number | boolean> {
name: string;
Expand All @@ -47,7 +47,7 @@ export declare class Tag extends Reader<Attribute[] | Text[] | Position | string
openEnd: Position;
closeStart: Position;
closeEnd: Position;
protected read(buf: Uint8Array, ptr: number): void;
protected read(buf: Uint32Array): void;
}
export declare class SAXParser {
static textDecoder: TextDecoder;
Expand Down
74 changes: 33 additions & 41 deletions lib/saxWasm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 96ba5e9

Please sign in to comment.