blob: f217f7d2136daf630a669e8ec8d65e6a87c46fff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/// <reference types="node" />
import { BaseHashReader } from '../base/hash-reader';
/**
* A hash reader for WebAssembly targets.
*/
export declare class NodeHashReader extends BaseHashReader<Buffer> {
/**
* Converts first 32 bytes of the hash to a string with the given encoding.
*/
toString(encoding?: BufferEncoding): string;
/**
* Converts first 32 bytes of the hash to an array.
*/
toBuffer(): Buffer;
protected alloc(bytes: number): Buffer;
}
|