16 #ifndef INCLUDE_NN_NLIB_MEMORYINPUTSTREAM_H_ 17 #define INCLUDE_NN_NLIB_MEMORYINPUTSTREAM_H_ 27 template <
class T,
size_t N>
29 : mis_buf_(static_cast<const nlib_byte_t*>(static_cast<const void*>(&buf[0]))),
30 mis_size_(N *
sizeof(T)) {
34 : mis_buf_(static_cast<const nlib_byte_t*>(buf)), mis_size_(n) {}
35 template <
class T,
size_t N>
37 return this->Init(&buf[0], N *
sizeof(T));
41 return Init(static_cast<const nlib_byte_t*>(buf), n);
60 #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.