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 arkts {'1.1':'12', '1.2':'20'} 44 * @arkts 1.1&1.2 45 */ 46export interface RawFileDescriptor { 47 /** 48 * rawfile descriptor 49 * 50 * @syscap SystemCapability.Global.ResourceManager 51 * @since 8 52 */ 53 /** 54 * rawfile descriptor 55 * 56 * @syscap SystemCapability.Global.ResourceManager 57 * @atomicservice 58 * @since 11 59 */ 60 /** 61 * rawfile descriptor 62 * 63 * @type { number } 64 * @syscap SystemCapability.Global.ResourceManager 65 * @crossplatform 66 * @atomicservice 67 * @since arkts {'1.1':'12', '1.2':'20'} 68 * @arkts 1.1&1.2 69 */ 70 fd: number; 71 72 /** 73 * the offset from where the raw file starts in the HAP 74 * 75 * @syscap SystemCapability.Global.ResourceManager 76 * @since 8 77 */ 78 /** 79 * the offset from where the raw file starts in the HAP 80 * 81 * @syscap SystemCapability.Global.ResourceManager 82 * @atomicservice 83 * @since 11 84 */ 85 /** 86 * the offset from where the raw file starts in the HAP 87 * 88 * @type { number } 89 * @syscap SystemCapability.Global.ResourceManager 90 * @crossplatform 91 * @atomicservice 92 * @since arkts {'1.1':'12', '1.2':'20'} 93 * @arkts 1.1&1.2 94 */ 95 offset: number; 96 97 /** 98 * the length of the raw file in the HAP 99 * 100 * @syscap SystemCapability.Global.ResourceManager 101 * @since 8 102 */ 103 /** 104 * the length of the raw file in the HAP 105 * 106 * @syscap SystemCapability.Global.ResourceManager 107 * @atomicservice 108 * @since 11 109 */ 110 /** 111 * the length of the raw file in the HAP 112 * 113 * @type { number } 114 * @syscap SystemCapability.Global.ResourceManager 115 * @crossplatform 116 * @atomicservice 117 * @since arkts {'1.1':'12', '1.2':'20'} 118 * @arkts 1.1&1.2 119 */ 120 length: number; 121}