raw_file.h

Overview

Provides functions for operating rawfiles.

These functions include searching, reading, and closing rawfiles.

Since: 8

Related Modules:

Rawfile

Summary

Structs

Name Description
RawFileDescriptor Provides rawfile descriptor information.

Types

Name Description
RawFile Provides the function of accessing rawfiles.

Functions

Name Description
OH_ResourceManager_ReadRawFile (const RawFile *rawFile, void *buf, size_t length) Reads a rawfile.
OH_ResourceManager_SeekRawFile (const RawFile *rawFile, long offset, int whence) Seeks for the data read/write position in the rawfile based on the specified offset.
OH_ResourceManager_GetRawFileSize (RawFile *rawFile) Obtains the length of a rawfile in int32_t.
OH_ResourceManager_CloseRawFile (RawFile *rawFile) Closes an opened RawFile and releases all associated resources.
OH_ResourceManager_GetRawFileOffset (const RawFile *rawFile) Obtains the current offset of the rawfile in int32_t.
OH_ResourceManager_GetRawFileDescriptor (const RawFile *rawFile, RawFileDescriptor &descriptor) Opens a rawfile descriptor.
OH_ResourceManager_ReleaseRawFileDescriptor (const RawFileDescriptor &descriptor) Closes a rawfile descriptor.