ltcode
Version:
Luby Transform Code implementation.
19 lines (18 loc) • 474 B
TypeScript
import { BlockGraph } from "./blockgraph";
export declare class Decoder {
initialized: boolean;
file_size: number | null;
block_size: number | null;
num_blocks: number | null;
block_graph: BlockGraph;
prng: any;
constructor();
decode(data: string): boolean;
getProgress(): number;
result(): string;
resultBytes(): Uint8Array;
private consume_block;
private _initialize;
private readBlocks;
private isBlockValid;
}