14 lines
235 B
C++
14 lines
235 B
C++
#pragma once
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
namespace kutil {
|
|
|
|
void * memset(void *p, uint8_t v, size_t n);
|
|
|
|
template <typename T>
|
|
T read_from(const void *p) { return *reinterpret_cast<const T *>(p); }
|
|
|
|
} // namespace kutil
|