MCPcopy
hub / github.com/ampproject/amphtml / arrayBuffer

Method arrayBuffer

third_party/subscriptions-project/swg.js:13676–13680  ·  view source on GitHub ↗

* Drains the response and returns a promise that resolves with the response * ArrayBuffer. * @return {!Promise<!ArrayBuffer>}

()

Source from the content-addressed store, hash-verified

13674 * @return {!Promise<!ArrayBuffer>}
13675 */
13676 arrayBuffer() {
13677 return /** @type {!Promise<!ArrayBuffer>} */ (
13678 this.drainText_().then(utf8EncodeSync)
13679 );
13680 }
13681}
13682
13683/**

Callers 1

test-xhr.jsFile · 0.45

Calls 2

drainText_Method · 0.95
thenMethod · 0.45

Tested by

no test coverage detected