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

Method at

app/src/main/cpp/utils/SharedBuffer.h:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35 template<class T>
36 [[nodiscard]] const T *at(size_t s) const noexcept {
37 if (s + sizeof(T) > size()) {
38 return nullptr;
39 } else {
40 return (const T *) (((const char *) get()) + s);
41 }
42 }
43
44 template<class T>
45 [[nodiscard]] T *at(size_t s) noexcept {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected