16 #ifndef INCLUDE_NN_NLIB_MEMORYINPUTSTREAM_H_ 17 #define INCLUDE_NN_NLIB_MEMORYINPUTSTREAM_H_ 29 template<class T,
size_t N>
32 mis_buf_(static_cast<const
nlib_byte_t*>(static_cast<const
void*>(&buf[0]))),
33 mis_size_(N * sizeof(T)) {
38 mis_buf_(static_cast<const nlib_byte_t*>(buf)),
40 template<
class T,
size_t N>
42 return this->Init(&buf[0], N *
sizeof(T));
46 return Init(static_cast<const nlib_byte_t*>(buf), n);
65 #endif // INCLUDE_NN_NLIB_MEMORYINPUTSTREAM_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.