diff --git a/osdk-core/modules/inc/filemgr/impl/mmap_file_buffer.hpp b/osdk-core/modules/inc/filemgr/impl/mmap_file_buffer.hpp index 21ce9b739..9331b1079 100644 --- a/osdk-core/modules/inc/filemgr/impl/mmap_file_buffer.hpp +++ b/osdk-core/modules/inc/filemgr/impl/mmap_file_buffer.hpp @@ -12,27 +12,28 @@ #include #include #include +#include namespace DJI { namespace OSDK { -class MmapFileBuffer { - public: - MmapFileBuffer(); - ~MmapFileBuffer(); + class MmapFileBuffer { + public: + MmapFileBuffer(); + ~MmapFileBuffer(); - std::string currentLogFilePath; - int fd; - char *fdAddr; - uint64_t fdAddrSize; - uint64_t curFilePos; + std::string currentLogFilePath; + int fd; + char *fdAddr; + uint64_t fdAddrSize; + uint64_t curFilePos; - bool init(std::string path, uint64_t fileSize); + bool init(std::string path, uint64_t fileSize); - bool deInit(); + bool deInit(); - bool InsertBlock(const uint8_t *pack, uint32_t data_length, uint64_t index); + bool InsertBlock(const uint8_t *pack, uint32_t data_length, uint64_t index); -}; -} + }; + } } #endif //ONBOARDSDK_INTERNAL_RESOURCES_SRC_OSDK_CORE_MODULES_INC_FILEMGR_IMPL_MMAP_FILE_BUFFER_HPP_