From f5bcc488ff3f9b716b92d0fb23d4685393c0c014 Mon Sep 17 00:00:00 2001 From: ain1084 Date: Sat, 26 Oct 2024 04:24:24 +0000 Subject: [PATCH] deploy: e566d75db8b7384215f3f546135be267f4a8e5af --- functions/createArrayBufferViews.html | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/createArrayBufferViews.html b/functions/createArrayBufferViews.html index 45428ee..0f49756 100644 --- a/functions/createArrayBufferViews.html +++ b/functions/createArrayBufferViews.html @@ -12,4 +12,4 @@
import { createArrayBufferViews } from '@ain1084/array-buffer-partitioner';

const views = createArrayBufferViews(ArrayBuffer, {
data: [Float32Array, 1024],
index: [Uint32Array, 1],
flag: [Uint8Array, 1]
});

console.log(views.data.length); // 1024
console.log(views.data.byteOffset); // 0
console.log(views.index.length); // 1
console.log(views.flag.length); // 1
console.log(views.flag.byteOffset); // 4100
console.log(views.data.buffer.byteLength); // 4104
-
+
diff --git a/index.html b/index.html index 318eb38..af9f793 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ @ain1084/array-buffer-partitioner - v0.0.1

@ain1084/array-buffer-partitioner - v0.0.1

@ain1084/array-buffer-partitioner

npm version -Documentation +CI License: MIT License

Partition an ArrayBuffer into multiple TypedArray views efficiently, while handling complex memory layouts and ensuring optimal alignment for better access performance.