linux::CFile


All platform-dependent classes have been moved to Platform Package in release 10.0.0.

This class is available on Linux platform only

Corresponding class for Windows platform is here.

Corresponding class for Android platform is here.

Implementation of the IFile interface for Linux platform.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class CFile :public virtual IFile
    {
    public:
        String getFilename() override;
        long long getSize() override;
        long long getPointer() override;
    
        bool setPointer(const long long value, const SEEK_FROM seek_from) override;
    
        bool Read(const unsigned int size, unsigned char *buffer, unsigned long &read) override;
        bool Write(const unsigned int size, unsigned char *buffer, unsigned long &written) override;
    
        void Release() override;
    
        CFile(FILE *file, const String &filename);
        virtual ~CFile() = default;
    };
Namespace: nitisa::standard::linux
Include: Standard/Platform/Linux/File.h