harmony 鸿蒙raw_file.h

  • 2023-06-24
  • 浏览 (620)

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.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞