```cpp template <typename T> T read(uint32_t index) const { if (!p_buffer_ || index + sizeof(T) > limit_) return 0; return *((T*)&p_buffer_[index]); } ``` i think this is undefined behavior.
i think this is undefined behavior.