// Copyright 2020 Google LLC. All Rights Reserved. #ifndef WHITEBOX_IMPL_REFERENCE_STRING_VIEW_UTIL_H_ #define WHITEBOX_IMPL_REFERENCE_STRING_VIEW_UTIL_H_ #include #include "absl/strings/string_view.h" namespace widevine { // Create a string view out of a uint8_t array. String view won't create a copy // copy of the data. absl::string_view AsStringView(const uint8_t* buffer, size_t buffer_size); } // namespace widevine #endif // WHITEBOX_IMPL_REFERENCE_STRING_VIEW_UTIL_H_