Class: Dommy::Bridge::ArrayBuffer

Inherits:
Bytes
  • Object
show all
Defined in:
lib/dommy/bridge.rb

Overview

Like ‘Bytes`, but crosses the JS boundary as a bare `ArrayBuffer` rather than a `Uint8Array` view. Use this for the spec methods whose return type is `ArrayBuffer` — `Response`/`Blob`/`FileReader`/`XMLHttpRequest`’s ‘arrayBuffer`. Subclasses `Bytes` so Ruby-level `== [..]` comparisons still hold; only the bridge distinguishes it (and must check it before `Bytes`).

Method Summary

Methods inherited from Bytes

#initialize, #pack_bytes

Constructor Details

This class inherits a constructor from Dommy::Bridge::Bytes