Rocky_Mountain_Vending/.pnpm-store/v10/files/d2/22f83ac72ff7788a7d584e289d2fa9a3b4fb9a31cb9e7a777773940f7cb33201aaabe91fe59fda8216fd1f2ccd560d6c97cd748ed6e01dc6097b443b13f178
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

25 lines
No EOL
708 B
Text

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