Austin Schuh | 8a399de | 2024-06-05 10:46:23 -0700 | [diff] [blame] | 1 | #ifndef AOS_SHARED_SPAN_H_ |
2 | #define AOS_SHARED_SPAN_H_ | ||||
3 | |||||
4 | #include <cstdint> | ||||
5 | #include <memory> | ||||
6 | |||||
7 | #include "absl/types/span.h" | ||||
8 | |||||
9 | namespace aos { | ||||
10 | |||||
11 | // Shared pointer to a region of memory. The pointer needs to own the region. | ||||
12 | using SharedSpan = std::shared_ptr<const absl::Span<const uint8_t>>; | ||||
13 | |||||
14 | } // namespace aos | ||||
15 | |||||
16 | #endif // AOS_SHARED_SPAN_H_ |