MCPcopy Create free account
hub / github.com/cinit/TMoe / at

Method at

app/src/main/cpp/utils/Rva.h:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19 template<class T>
20 inline T *at(size_t offset) noexcept {
21 if (offset + sizeof(T) > length) {
22 return nullptr;
23 } else {
24 return (T *) (((char *) address) + offset);
25 }
26 }
27
28 template<class T>
29 inline const T *at(size_t offset) const noexcept {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected