MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / remove_longname_suffix

Function remove_longname_suffix

libcppcryptfs/filename/cryptfilename.cpp:952–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

950}
951
952const WCHAR *
953remove_longname_suffix(const WCHAR *filepath, wstring& storage)
954{
955 storage = filepath;
956
957 size_t len = storage.length() - (sizeof(LONGNAME_SUFFIX_W) / sizeof(WCHAR) - 1);
958
959 storage = storage.substr(0, len);
960
961 return &storage[0];
962}
963
964bool
965get_actual_encrypted(CryptContext *con, LPCWSTR FileName, string& actual_encrypted)

Callers 2

get_file_informationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected