Explore tweets tagged as #Uint8Array
In the next version of Bun Response, Request, and Bun.file() get the "bytes" method to return content as a Uint8Array
3
4
64
Replace "new Uint8Array" with "Uint8Array.from" in your Node.js code to make it faster. I use it for gRPC communication. Uint8Array.from is the winner, usually running 1.7×–3.05× faster.
1
0
5
Thanks for the feedback! Some users mentioned issues with setting wallet environment variables in OctoMCP — specifically, the need to convert private keys to Uint8Array, which often requires installing extra packages. We've listened and made it easier. 🚀 OctoMCP now supports
12
29
113
In the next version of Bun Uint8Array.fromBase64 uint8Array.toBase64 Uint8Array.fromHex uint8Array.toHex
3
6
217
Been writing a lot of tests, recently ran into this and turns out that jest breaks instances of Uint8Array (and ArrayBuffer) so to fix this I had to declare a global instance of both in the jest config, spent a lot of time researching a fix lol😂.
0
2
7
Only 11% got this basic JavaScript quiz. Array default sort function is lexicographic:— “13” < “3” — so — [1,5,3,8,13,4].sort() — results — [1,13,3,4,5,8] To sort numerically, consider typed arrays. new Uint8Array([1,5,3,8,13,4]). sort() — results — [1,3,4,5,8,13]
1
0
0
Stepped into week 1 of Web3 learnt about:- 1.Public and Private keys 2.Bits and bytes 3.Hashing vs Encryption 4.ASCII, Hex, Base64 and Base58 5.Uint8Array got to know about One of the famous sayings in Web3 world ~Not your keys, Not your Crypto✌️
10
1
95
⚡ Path traversal through path stored in Uint8Array in Node.js 20 👨🏻💻 @tniessen_ ➟ Internet Bug Bounty 🟥 High 💰 $3,495 🔗 https://t.co/NL79uDV7SV
#bugbounty #bugbountytips #cybersecurity #infosec
2
8
56
I never thought I'd use XHR again... ...but I could not for the life of me get fetch() to send a Uint8Array, so XHR it is 🤷♂️
2
1
12
Interesting trace for some code that encrypts and decrypts a 1GB Uint8Array in Node v22. It seems very inefficient. 1. Blue block: encryption, ~200ms. 2. Yellow block: adding a metadata header to the encrypted buffer, which requires copying it. 3. Green block: decryption,
1
0
5
Hi @leeerob How can I do this? .com/#/something Right now I'm getting this error: The argument 'path' must be a string or Uint8Array without null bytes.
2
0
2
Decode base64 strings into byte arrays with Uint8Array.fromBase64() → https://t.co/Va7wEm7OCK Now part of Baseline, it's the preferred alternative to atob() for easier handling of binary data.
4
24
169
本日、開発者向けの #Solana の徹底ハンズオン動画を作成しました! 約2時間の動画になりました🔥 ◎内容◎ 1 signerの作成〜署名・検証 ①プロジェクトの作成 ②署名者の作成 ③Uint8Array型とbase58型 ④署名者、キーペアの作成 ⑤署名と検証 2フロントエンドでのウォレット接続
4
9
45
ECMAScript excitement 😉 Congrats to @bakkoting on advancing UInt8Array ↔️ Base64/Hex to Stage 4 @TC39 this week 🎉 UInt8Array.prototype. toBase64 toHex UInt8Array. fromBase64 fromHex It lets you convert directly between binary data and Base64/Hex strings 👍
3
29
191
Finally, the uint8array format in javascript natively supports hex encoding
2
0
8
Import anything in astro as the ArrayBuffer or Uint8Array in two steps. 1. Install the vite-plugin-arraybuffer and add it to your astro.config.ts. 2. Add a declaration in env.d.ts. Then you can import asserts in relative path and ?arraybuffer suffix to make the import as the
1
0
5
// WebAssembly Reverse Polish Notation Compiler in 218 bytes let c=(s,b)=>(b=s.split(' ').flatMap(t=>(+t==t?[65,t]:106+'+-* /'.indexOf(t))),s=b.length,WebAssembly.instantiate(Uint8Array.from([0,97,115,109,1,0,0,0,1,5,1,96,0,1,127,3,2,1,0,7,5,1,1,97,0,0,10,4+s,1,2+s,0,...b,11])))
0
0
3