MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / ~KittyIOFile

Method ~KittyIOFile

KittyMemoryEx/KittyIOFile.hpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 KittyIOFile &operator=(const KittyIOFile &) = delete;
47
48 /**
49 * @brief Move constructor. Transfers ownership of the file descriptor.
50 */
51 KittyIOFile(KittyIOFile &&other) noexcept
52 : _fd(other._fd), _filePath(std::move(other._filePath)), _flags(other._flags), _mode(other._mode),
53 _error(other._error)
54 {
55 other._fd = -1;
56 other._error = 0;
57 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected