Home / Function/ buffersEqual() — astro Function Reference

buffersEqual() — astro Function Reference

Architecture documentation for the buffersEqual() function in binary.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  16567aed_432a_ba84_24de_f90cb5f7884b["buffersEqual()"]
  fd7746e8_2130_961b_5a50_e0498e638a5c["binary.js"]
  16567aed_432a_ba84_24de_f90cb5f7884b -->|defined in| fd7746e8_2130_961b_5a50_e0498e638a5c
  93cdd5a1_ae4a_1982_f432_372934d5d1ab["POST()"]
  93cdd5a1_ae4a_1982_f432_372934d5d1ab -->|calls| 16567aed_432a_ba84_24de_f90cb5f7884b
  style 16567aed_432a_ba84_24de_f90cb5f7884b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/ssr-api-route/src/pages/binary.js lines 22–30

function buffersEqual(buf1, buf2) {
	if (buf1.byteLength != buf2.byteLength) return false;
	const dv1 = new Uint8Array(buf1);
	const dv2 = new Uint8Array(buf2);
	for (let i = 0; i !== buf1.byteLength; i++) {
		if (dv1[i] != dv2[i]) return false;
	}
	return true;
}

Subdomains

Called By

Frequently Asked Questions

What does buffersEqual() do?
buffersEqual() is a function in the astro codebase, defined in packages/astro/test/fixtures/ssr-api-route/src/pages/binary.js.
Where is buffersEqual() defined?
buffersEqual() is defined in packages/astro/test/fixtures/ssr-api-route/src/pages/binary.js at line 22.
What calls buffersEqual()?
buffersEqual() is called by 1 function(s): POST.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free