typed_array.luau
Versions
Every version of this package its world published, newest first by when it first appeared. A version published again later keeps its place.
package portability: internal requires use relative identity form (.sibling / ..uncle / .stdlib.child) so installs resolve from any location, including /source/deps/ --- requires name the package alias, so the package resolves wherever it is installed Every intra-package require now reads ~zerojs.<tail> — the alias the package registers from its package.yaml name — instead of the world-root identity zerojs.<tail>, which only resolves from a root literally named zerojs and so left the package unusable once installed under /source/deps/. One uniform form across all 87 sites also gives each module a single identity: reaching the same file under two different literals loaded it twice, which is what the semantics suite's undefined-sentinel comparisons were failing on. 1220/1220.
01KYJS2D9K3H86675TQNZGSXWX0259d04488Browse filesCompare with previousCompare from herezerojs: buffer-backed ArrayBuffer, TypedArray family, and DataView Element storage is a native Luau buffer: rt.get/rt.set/rt.hasOwn route canonical numeric keys straight to buffer reads/writes with per-kind ECMAScript conversions, set() between same-kind views is a byte copy, fill() doubles a copied span, subarray() shares the buffer, and slice() copies. DataView covers both byte orders. The bridge crosses typed arrays to Luau as number arrays read off the buffer and Luau buffers to JS as Uint8Array views; rt.typedArrayOf / rt.newTypedArray / rt.newArrayBuffer give hosts direct byte access.
01KXQZXBGSDN9E0PASNVBP6XYK402108cc1aBrowse filesCompare from here