• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2* Copyright (C) 2025 HiHope Open Source Organization.
3* Licensed under the Apache License, Version 2.0 (the "License");
4* you may not use this file except in compliance with the License.
5* You may obtain a copy of the License at
6*
7*   http://www.apache.org/licenses/LICENSE-2.0
8*
9* Unless required by applicable law or agreed to in writing, software
10* distributed under the License is distributed on an "AS IS" BASIS,
11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12* See the License for the specific language governing permissions and
13* limitations under the License.
14*/
15const JSsharedBuffer1 = new SharedArrayBuffer(8);
16
17export const JSint8Array = new Int8Array(JSsharedBuffer1);
18
19const JSsharedBuffer2 = new SharedArrayBuffer(8);
20
21export const JSuint8Array = new Uint8Array(JSsharedBuffer2);
22
23const JSsharedBuffer3 = new SharedArrayBuffer(8);
24
25export const JSuint8ClampedArray = new Uint8ClampedArray(JSsharedBuffer3);
26
27
28const JSsharedBuffer4 = new SharedArrayBuffer(16);
29
30export const JSint16Array = new Int16Array(JSsharedBuffer4);
31
32const JSsharedBuffer5 = new SharedArrayBuffer(16);
33
34export const JSuint16Array = new Uint16Array(JSsharedBuffer5);
35
36
37const JSsharedBuffer6 = new SharedArrayBuffer(32);
38
39export const JSint32Array = new Int32Array(JSsharedBuffer6);
40
41const JSsharedBuffer7 = new SharedArrayBuffer(32);
42
43export const JSuint32Array = new Uint32Array(JSsharedBuffer7);
44
45const JSsharedBuffer8 = new SharedArrayBuffer(32);
46
47export const JSfloat32Array = new Float32Array(JSsharedBuffer8);
48
49
50const JSsharedBuffer9 = new SharedArrayBuffer(64);
51
52export const JSbigint64Array = new BigInt64Array(JSsharedBuffer9);
53
54const JSsharedBuffer10 = new SharedArrayBuffer(64);
55
56export const JSbiguint64Array = new BigUint64Array(JSsharedBuffer10);