25 _fileHandle.reset(storage->OpenFile(fileDataId, CASC_LOCALE_NONE, printErrors,
true));
39 return _fileHandle->ReadFile(buffer, numBytes, &bytesRead) && numBytes == bytesRead;
69 if (std::shared_ptr<CASC::Storage const> storage =
_storageHandle.lock())
DB2EncryptedSectionHandling
std::string StringFormat(FormatString< Args... > fmt, Args &&... args)
Default TC string format function.
std::weak_ptr< CASC::Storage const > _storageHandle
int64 GetPosition() const override
DB2CascFileSource(std::shared_ptr< CASC::Storage const > storage, uint32 fileDataId, bool printErrors=true)
bool Read(void *buffer, std::size_t numBytes) override
DB2EncryptedSectionHandling HandleEncryptedSection(DB2SectionHeader const §ionHeader) const override
std::unique_ptr< CASC::File > _fileHandle
bool IsOpen() const override
int64 GetFileSize() const override
char const * GetFileName() const override
bool SetPosition(int64 position) override
CASC::File * GetNativeHandle() const