// Minimal stub matching WebRTC M125 api/array_view.h
#ifndef API_ARRAY_VIEW_H_
#define API_ARRAY_VIEW_H_

#include <cstddef>

namespace rtc {

template <typename T>
class ArrayView final {
 public:
  constexpr ArrayView() noexcept : ptr_(nullptr), size_(0) {}
  constexpr ArrayView(T* ptr, size_t size) noexcept : ptr_(ptr), size_(size) {}
  constexpr T* data() const { return ptr_; }
  constexpr size_t size() const { return size_; }

 private:
  T* ptr_;
  size_t size_;
};

}  // namespace rtc

#endif  // API_ARRAY_VIEW_H_
