3 #ifndef INCLUDE_NN_NLIB_MEMORYINPUTSTREAM_H_ 4 #define INCLUDE_NN_NLIB_MEMORYINPUTSTREAM_H_ 14 template <
class T,
size_t N>
16 : mis_buf_(reinterpret_cast<const uint8_t*>(&buf[0])), mis_size_(N *
sizeof(T)) {}
18 template <
class T,
size_t N>
20 return this->Init(&buf[0], N *
sizeof(T));
33 const uint8_t* mis_buf_;
40 #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_FINAL
Defines final if it is available for use. If not, holds an empty string.