ohos.raw_file_descriptor
Note:
Currently in the beta phase.
This module represents the descriptor information of rawfile.
Import Module
import kit.LocalizationKit.*
Usage Instructions
API sample code usage instructions:
- If the first line of sample code contains a "// index.cj" comment, it indicates the sample can be compiled and run in the "index.cj" file of the Cangjie template project.
- If the sample requires obtaining the Context application context, it needs to be configured in the "main_ability.cj" file of the Cangjie template project.
For the aforementioned sample project and configuration template, please refer to Cangjie Sample Code Instructions.
Usage Instructions
API sample code usage instructions:
- If the first line of sample code contains a "// index.cj" comment, it indicates the sample can be compiled and run in the "index.cj" file of the Cangjie template project.
- If the sample requires obtaining the Context application context, it needs to be configured in the "main_ability.cj" file of the Cangjie template project.
For the aforementioned sample project and configuration template, please refer to Cangjie Sample Code Instructions.
class RawFileDescriptor
public class RawFileDescriptor {
public var fd: Int32
public var offset: Int64
public var length: Int64
}
Description: Represents the descriptor information of rawfile.
System Capability: SystemCapability.Global.ResourceManager
Since: 22
var fd
public var fd: Int32
Description: The file descriptor of the HAP where rawfile is located.
Type: Int32
System Capability: SystemCapability.Global.ResourceManager
Since: 22
var length
public var length: Int64
Description: The file length of rawfile.
Type: Int64
System Capability: SystemCapability.Global.ResourceManager
Since: 22
var offset
public var offset: Int64
Description: The starting offset of rawfile.
Type: Int64
System Capability: SystemCapability.Global.ResourceManager
Since: 22