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

Function get_file_stream

libcppcryptfs/util/fileutil.cpp:931–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929
930
931bool
932get_file_stream(LPCWSTR filename, wstring *file, wstring *stream)
933{
934
935 LPCWSTR pStreamColon = wcschr(filename, ':');
936
937 if (pStreamColon) { // have stream
938 if (file) {
939 *file = filename;
940 file->erase(pStreamColon - filename);
941 }
942 if (stream)
943 *stream = pStreamColon;
944 return true;
945 } else {
946 if (file)
947 *file = filename;
948 if (stream)
949 *stream = L"";
950 return false;
951 }
952}
953
954bool
955remove_stream_type(LPCWSTR stream, wstring& stream_without_type, wstring& type)

Callers 7

ConvertMethod · 0.85
encrypt_filenameFunction · 0.85
decrypt_filenameFunction · 0.85
storeMethod · 0.85
lookupMethod · 0.85
removeMethod · 0.85

Calls 1

eraseMethod · 0.80

Tested by

no test coverage detected