• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
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 */
15
16export const nullptr: int | bigint = BigInt(0);
17export type int = number;
18export type int32 = int;
19export type int64 = int;
20export type float = number;
21export type float32 = float;
22export type float64 = float;
23
24export type KStringPtr = int32 | string | null;
25export type KStringArrayPtr = int32 | Uint8Array | null;
26export type KInt32ArrayPtr = int32 | Int32Array | null;
27export type KFloat32ArrayPtr = int32 | Float32Array | null;
28export type KUint8ArrayPtr = int32 | Uint8Array | null;
29export type KInt = int32;
30export type KUInt = int32;
31export type KLong = int64;
32export type KFloat = float32;
33export type KDouble = float64;
34export type KBoolean = int32;
35export type KPointer = Uint8Array | number | bigint;
36export type pointer = KPointer;
37export type KNativePointer = KPointer;
38export type KNativePointerArray = BigUint64Array;
39