Update Aura

This commit is contained in:
2026-06-23 14:54:15 -07:00
parent db2482dbe2
commit 78ea055aea
18 changed files with 407 additions and 98 deletions

View File

@ -0,0 +1,17 @@
package aura.format;
import haxe.io.Bytes;
using StringTools;
/**
Variant of `aura.format.InputExtension.isByteMagic()` for `haxe.io.Bytes`.
**/
inline function isByteMagic(bytes: Bytes, position: Int, magicASCII: String): Bool {
var match = true;
for (i in 0...magicASCII.length) {
match = match && bytes.get(position + i) == magicASCII.fastCodeAt(i);
}
return match;
}