aboutsummaryrefslogtreecommitdiff
path: root/docs/guides/binary/buffer-to-arraybuffer.md
blob: 56ba78a00a832f4e4ade809f6185040f92d26623 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
name: Convert a Buffer to an ArrayBuffer
---

The Node.js [`Buffer`](https://nodejs.org/api/buffer.html) class provides a way to view and manipulate data in an underlying `ArrayBuffer`, which is available via the `buffer` property.

```ts
const nodeBuf = Buffer.alloc(64);
const arrBuf = nodeBuf.buffer;
```

---

See [Docs > API > Binary Data](/docs/api/binary-data#conversion) for complete documentation on manipulating binary data with Bun.
tart'>remove-start Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/packages/integrations/node (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-01-03[ci] release (beta) (#5732)astro@2.0.0-beta.0@astrojs/vue@2.0.0-beta.0@astrojs/vercel@3.0.0-beta.0@astrojs/svelte@2.0.0-beta.0@astrojs/node@5.0.0-beta.0@astrojs/netlify@2.0.0-beta.0@astrojs/mdx@0.15.0-beta.0@astrojs/markdown-remark@2.0.0-beta.0@astrojs/image@0.13.0-beta.0@astrojs/deno@4.0.0-beta.0@astrojs/cloudflare@6.0.0-beta.0Gravatar Fred K. Bot 2-2/+13
2023-01-03[ci] formatGravatar matthewp 2-2/+2
2023-01-03Markdown and MDX configuration rework (#5684)Gravatar Ben Holmes 14-1665/+2188
2023-01-03[ci] formatGravatar bholmesdev 4-46/+45
2023-01-03Change frontmatter injection ordering (#5687)Gravatar Ben Holmes 29-204/+234
2023-01-03Cleanup internal breaking changes (#5724)Gravatar Bjorn Lu 4-33/+7
2023-01-03Fix astro-embed peerDep issue (#5731)Gravatar Matthew Phillips 2-2/+2
2023-01-03Fix missing ts flag on main (#5730)Gravatar Matthew Phillips 1-0/+1
2023-01-03[ci] formatGravatar matthewp 3-10/+2
2023-01-03Remove MDX Fragment hack (#5716)Gravatar Bjorn Lu 2-9/+6
2023-01-03Remove deprecated APIs (#5707)Gravatar Bjorn Lu 18-217/+87
2023-01-03Unflag experimental features (#5728)Gravatar Nate Moore 13-122/+26
2023-01-03Upgrade to Vite 4 (#5685)Gravatar Bjorn Lu 21-3459/+337
2023-01-03[ci] update lockfile (#5686)Gravatar Fred K. Bot 4-3215/+2864