MCPcopy Create free account
hub / github.com/callstackincubator/polygen / arrayBuffersEqual

Function arrayBuffersEqual

packages/binary-utils/src/helpers.ts:41–43  ·  view source on GitHub ↗
(a: ArrayBuffer, b: ArrayBuffer)

Source from the content-addressed store, hash-verified

39 * @return A boolean value indicating whether the two ArrayBuffers are equal.
40 */
41export function arrayBuffersEqual(a: ArrayBuffer, b: ArrayBuffer): boolean {
42 return dataViewsAreEqual(new DataView(a), new DataView(b));
43}
44
45/**
46 * Compares two DataView instances to determine if they are equal in content and length.

Callers 2

binary.spec.tsFile · 0.85
readMagicFunction · 0.85

Calls 1

dataViewsAreEqualFunction · 0.85

Tested by

no test coverage detected