16 #ifndef INCLUDE_NN_NLIB_FILEINPUTSTREAM_H_ 17 #define INCLUDE_NN_NLIB_FILEINPUTSTREAM_H_ 31 buffer_size(buffer_size_) {}
37 : fd_(
NLIB_FD_INVALID), buf_(
nullptr), buf_size_(0), is_internal_buf_(false) {}
41 return this->Init(settings);
50 virtual size_t FillBuffer_(
void* p,
size_t nbytes) NLIB_NOEXCEPT
NLIB_OVERRIDE;
52 virtual void* GetWorkBuffer_(
size_t* nbytes) NLIB_NOEXCEPT
NLIB_OVERRIDE;
58 bool is_internal_buf_;
64 #endif // INCLUDE_NN_NLIB_FILEINPUTSTREAM_H_ #define NLIB_OVERRIDE
Defines override if it is available for use. If not, holds an empty string.
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
Prohibits use of the copy constructor and assignment operator for the class specified by TypeName...
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
#define NLIB_CEXPR
Defines constexpr if it is available for use. If not, holds an empty string.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.