Rocky_Mountain_Vending/.pnpm-store/v10/files/cb/7b8933f384fc3491a44a49d13ba421e6f2e92081007333314cc55367514a4c42b6a0953b2edb585a7eb470436b04d89f5912ce9e1e685c57283f60402b2708
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

24 lines
No EOL
679 B
Text

import { BaseHashReader } from '../base/hash-reader.js';
import { defaultHashLength } from '../base/hash-fn.js';
/**
* A hash reader for WebAssembly targets.
*/
export class NodeHashReader extends BaseHashReader {
/**
* Converts first 32 bytes of the hash to a string with the given encoding.
*/
toString(encoding = 'hex') {
return this.toBuffer().toString(encoding);
}
/**
* Converts first 32 bytes of the hash to an array.
*/
toBuffer() {
this.position = BigInt(0);
return this.read(defaultHashLength);
}
alloc(bytes) {
return Buffer.alloc(bytes);
}
}
//# sourceMappingURL=hash-reader.js.map