| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected