Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed not added library #759

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions osdk-core/modules/inc/filemgr/impl/mmap_file_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,28 @@
#include <unistd.h>
#include <memory>
#include <atomic>
#include <string>

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_