• 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 TSsharedBuffer1: SharedArrayBuffer = new SharedArrayBuffer(8);
16
17export const TSint8Array: Int8Array = new Int8Array(TSsharedBuffer1);
18
19const TSsharedBuffer2: SharedArrayBuffer = new SharedArrayBuffer(8);
20
21export const TSuint8Array: Uint8Array = new Uint8Array(TSsharedBuffer2);
22
23const TSsharedBuffer3: SharedArrayBuffer = new SharedArrayBuffer(8);
24
25export const TSuint8ClampedArray: Uint8ClampedArray = new Uint8ClampedArray(TSsharedBuffer3);
26
27
28const TSsharedBuffer4: SharedArrayBuffer = new SharedArrayBuffer(16);
29
30export const TSint16Array: Int16Array = new Int16Array(TSsharedBuffer4);
31
32const TSsharedBuffer5: SharedArrayBuffer = new SharedArrayBuffer(16);
33
34export const TSuint16Array: Uint16Array = new Uint16Array(TSsharedBuffer5);
35
36
37const TSsharedBuffer6: SharedArrayBuffer = new SharedArrayBuffer(32);
38
39export const TSint32Array: Int32Array = new Int32Array(TSsharedBuffer6);
40
41const TSsharedBuffer7: SharedArrayBuffer = new SharedArrayBuffer(32);
42
43export const TSuint32Array: Uint32Array = new Uint32Array(TSsharedBuffer7);
44
45const TSsharedBuffer8: SharedArrayBuffer = new SharedArrayBuffer(32);
46
47export const TSfloat32Array: Float32Array = new Float32Array(TSsharedBuffer8);
48
49
50const TSsharedBuffer9: SharedArrayBuffer = new SharedArrayBuffer(64);
51
52export const TSbigint64Array: BigInt64Array = new BigInt64Array(TSsharedBuffer9);
53
54const TSsharedBuffer10: SharedArrayBuffer = new SharedArrayBuffer(64);
55
56export const TSbiguint64Array: BigUint64Array = new BigUint64Array(TSsharedBuffer10);