Defjs
Core

struct.arrayBuffer

Struct that accepts an ArrayBuffer.

@defjs/core · Function

Signature

function arrayBuffer(): Struct<ArrayBuffer, ArrayBuffer>;
  • Accepts an ArrayBuffer only. Typed arrays and other views fail with invalid_type.

  • As a body root it is sent as bytes with application/octet-stream.

  • As an output or error struct it makes the response body be read as an ArrayBuffer.

Edit this page on GitHub
Released under the MIT License. · Copyright © 2026 MunMunMiao