• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022 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
16/**
17 * @file
18 * @kit LocalizationKit
19 */
20
21/**
22 * Contains rawFile descriptor information.
23 *
24 * @interface RawFileDescriptor
25 * @syscap SystemCapability.Global.ResourceManager
26 * @since 8
27 */
28/**
29 * Contains rawFile descriptor information.
30 *
31 * @interface RawFileDescriptor
32 * @syscap SystemCapability.Global.ResourceManager
33 * @atomicservice
34 * @since 11
35 */
36/**
37 * Contains rawFile descriptor information.
38 *
39 * @interface RawFileDescriptor
40 * @syscap SystemCapability.Global.ResourceManager
41 * @crossplatform
42 * @atomicservice
43 * @since 12
44 */
45export interface RawFileDescriptor {
46  /**
47   * rawfile descriptor
48   *
49   * @syscap SystemCapability.Global.ResourceManager
50   * @since 8
51   */
52  /**
53   * rawfile descriptor
54   *
55   * @syscap SystemCapability.Global.ResourceManager
56   * @atomicservice
57   * @since 11
58   */
59  /**
60   * rawfile descriptor
61   *
62   * @type { number }
63   * @syscap SystemCapability.Global.ResourceManager
64   * @crossplatform
65   * @atomicservice
66   * @since 12
67   */
68  fd: number;
69
70  /**
71   * the offset from where the raw file starts in the HAP
72   *
73   * @syscap SystemCapability.Global.ResourceManager
74   * @since 8
75   */
76  /**
77   * the offset from where the raw file starts in the HAP
78   *
79   * @syscap SystemCapability.Global.ResourceManager
80   * @atomicservice
81   * @since 11
82   */
83  /**
84   * the offset from where the raw file starts in the HAP
85   *
86   * @type { number }
87   * @syscap SystemCapability.Global.ResourceManager
88   * @crossplatform
89   * @atomicservice
90   * @since 12
91   */
92  offset: number;
93
94  /**
95   * the length of the raw file in the HAP
96   *
97   * @syscap SystemCapability.Global.ResourceManager
98   * @since 8
99   */
100  /**
101   * the length of the raw file in the HAP
102   *
103   * @syscap SystemCapability.Global.ResourceManager
104   * @atomicservice
105   * @since 11
106   */
107  /**
108   * the length of the raw file in the HAP
109   *
110   * @type { number }
111   * @syscap SystemCapability.Global.ResourceManager
112   * @crossplatform
113   * @atomicservice
114   * @since 12
115   */
116  length: number;
117}