nlib
Lz4InputStream.h
Go to the documentation of this file.
1 
2 #pragma once
3 #ifndef INCLUDE_NN_NLIB_OSS_LZ4OUTPUTSTREAM_H_
4 #define INCLUDE_NN_NLIB_OSS_LZ4OUTPUTSTREAM_H_
5 
6 #include "lz4frame.h"
7 #include "nn/nlib/Config.h"
8 #include "nn/nlib/InputStream.h"
10 
11 #if defined(_MSC_VER) && defined(nx_oss_lz4_EXPORTS)
12 #undef NLIB_VIS_PUBLIC
13 #define NLIB_VIS_PUBLIC NLIB_WINEXPORT
14 #endif
15 
16 NLIB_NAMESPACE_BEGIN
17 namespace oss {
18 
20  public:
22 };
23 
25  public:
26  Lz4InputStream() NLIB_NOEXCEPT : prv_(NULL) {}
30  return this->Init(settings);
31  }
32  errno_t Init(const Lz4InputStreamSettings& settings) NLIB_NOEXCEPT;
33 
34  private:
35  struct Lz4InputStreamPrivate;
36  Lz4InputStreamPrivate* prv_;
38 };
39 
40 } // namespace oss
41 NLIB_NAMESPACE_END
42 
43 #if defined(_MSC_VER) && defined(nx_oss_lz4_EXPORTS)
44 #undef NLIB_VIS_PUBLIC
45 #define NLIB_VIS_PUBLIC NLIB_WINIMPORT
46 #endif
47 
48 #endif // INCLUDE_NN_NLIB_OSS_LZ4OUTPUTSTREAM_H_
#define NLIB_OVERRIDE
Defines override if it is available for use. If not, holds an empty string.
Definition: Config.h:210
The base class for classes that act internally like InputStream to convert data.
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
Prohibits use of the copy constructor and assignment operator for the class specified by TypeName...
Definition: Config.h:145
Defines the base class for input streams.
The stream class to read data according to the LZ4 frame format.
#define NLIB_VIS_PUBLIC
Symbols for functions and classes are made available outside of the library.
Definition: Platform_unix.h:61
errno_t Init() noexcept
Initializes the stream with the default settings.
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
Definition: Config.h:86
Lz4InputStream() noexcept
Instantiates the object with default parameters (default constructor). Must be initialized with Init(...
#define NLIB_CEXPR
Defines constexpr if it is available for use. If not, holds an empty string.
Definition: Config.h:80
A file that contains the configuration information for each development environment.
The class to obtain and configure the Lz4InputStream settings. As of now this class is empty...
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
Definition: Config.h:211
int errno_t
Indicates with an int-type typedef that a POSIX error value is returned as the return value...
Definition: NMalloc.h:24