new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Bun · Runtime · all subjects

binary-data

1 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Binary data types overview

Bun implements several data types for working with binary data in JavaScript. TypedArray provides an Array-like interface for interacting with binary data and includes Uint8Array, Uint16Array, Int8Array, and more. Buffer is a subclass of Uint8Array that implements convenience methods and is a Node.js API (which Bun implements) that is not available in the browser. DataView provides a get/set API for writing bytes to an ArrayBuffer at a particular byte offset, often used for reading or writing binary protocols. Blob is a readonly blob of binary data usually representing a file, with a MIME type, size, and methods for converting to ArrayBuffer, ReadableStream, and string. File is a subclass of Blob that represents a file with a name and lastModified timestamp, with Node.js v20 having experimental support. BunFile is Bun-only and is a subclass of Blob that represents a lazily-loaded file on disk, created with Bun.file(path).

Give your agent this brain