/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
library/cpp/yt/memory/safe_memory_reader-inl.h
19 строк
529 B
qkrorlqr
Initial NBS OpenSource export
28 апр 2023, 21:54
28 апр 2023, 21:54
783a858
Код
Авторство
О чём код?
#ifndef SAFE_MEMORY_READER_INL_H_ #error "Direct inclusion of this file is not allowed, include safe_memory_reader.h" // For the sake of sane code completion. #include "safe_memory_reader.h" #endif namespace NYT { //////////////////////////////////////////////////////////////////////////////// template <class T> bool TSafeMemoryReader::Read(const void* addr, T* value) { return ReadRaw(addr, value, sizeof(*value)); } //////////////////////////////////////////////////////////////////////////////// } // namespace NYT