// Accepts a string, TypedArray, or Blob (file blob supported is not implemented but planned) const input = "hello world".repeat(400); // Bun.hash() defaults to Wyhash because it's fast console.log(Bun.hash(input)); console.log(Bun.hash.wyhash(input)); // and returns a number // all of these hashing functions return numbers, not typed arrays. console.log(Bun.hash.adler32(input)); console.log(Bun.hash.crc32(input)); console.log(Bun.hash.cityHash32(input)); console.log(Bun.hash.cityHash64(input)); console.log(Bun.hash.murmur32v3(input)); console.log(Bun.hash.murmur64v2(input)); // Second argument accepts a seed where relevant console.log(Bun.hash(input, 12345)); ='hidden' name='id' value='4a19a3f07f1887903e5638a3be167f0c7b377ba3'/> Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/bindings/webcore/CanvasPath.h (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2022-04-03wipGravatar Jarred Sumner 1-0/+74
2022-04-03[bun.js] Expose `ImageData` globallyGravatar Jarred Sumner 12-2/+1237
2022-04-02More typesGravatar Jarred Sumner 2-39/+3998
2022-04-02Add more typingsGravatar Jarred Sumner 1-2/+416
2022-04-02Add more tests for Node FSGravatar Jarred Sumner 4-1/+60
2022-04-02[bun.js] fs.readSync & fs.writeSync should return just the numberGravatar Jarred Sumner 1-24/+57
2022-04-02[bun.js] Support `mode` and `flags` as integer args in fs.openSync (instead ↵Gravatar Jarred Sumner 1-0/+6
of only object)
2022-04-02Update base.zigGravatar Jarred Sumner 1-0/+1
2022-04-02Fix GC bug when reading TypedArray from user inputGravatar Jarred Sumner 1-6/+36
2022-04-02s/Buffer/TypedArrayGravatar Jarred Sumner 1-17/+17
2022-04-02Fix mmap on macOS x64Gravatar Jarred Sumner 2-29/+27