~ubuntu-branches/ubuntu/saucy/apt-cacher-ng/saucy

« back to all changes in this revision

Viewing changes to include/filereader.h

  • Committer: Package Import Robot
  • Author(s): Eduard Bloch
  • Date: 2011-09-30 16:37:18 UTC
  • mfrom: (24.2.16 sid)
  • Revision ID: package-import@ubuntu.com-20110930163718-r0agyg6jptvobt5w
* New upstream versions
  + implements extra keeping of obsolete package versions (closes: #634145)
  + configurable outgoing connection protocol (closes: #641257)

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        inline size_t GetSize() const { return m_nBufSize; };
54
54
        void Close();
55
55
 
 
56
        //! @brief Helper to make GetOneLine assume that there is newline(s) when file ends
 
57
        inline void AddEofLines(UINT nCount=1) { m_nEofLines=nCount; }
 
58
 
56
59
private:
57
60
        
58
61
        UINT flags;
67
70
        
68
71
        int m_fd;
69
72
        
 
73
        int m_nEofLines;
 
74
 
70
75
        //! Returns: currently usable remaining text buffer size
71
76
        inline void _UncompressMoreData();
72
77
        
83
88
        // not to be copied
84
89
        filereader& operator=(const filereader&);
85
90
        filereader(const filereader&);
86
 
 
87
91
};
88
92
 
89
93
extern uint_fast16_t hexmap[];