ErrorCode addFile ( std::unique_ptr <char[]> data, size_t size, const std::string& filename )
store file to managed SmartSSD cards. Copy data from CPU memory to SSD cards
Parameters:
data | pointer to file content in memory. Before return, the block of storage will be released |
size | file size |
filename | file to store |
Returns:
success or fail status