Adopt absl::string_view in CopyOnWriteBuffer
Bug: webrtc:13579 Change-Id: Ia2b99a28ed0c103215e8616da67a5c961b957199 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/260465 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36832}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
6344bf10ac
commit
e00d7d0ce6
@ -19,6 +19,7 @@
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "api/scoped_refptr.h"
|
||||
#include "rtc_base/buffer.h"
|
||||
#include "rtc_base/checks.h"
|
||||
@ -38,7 +39,7 @@ class RTC_EXPORT CopyOnWriteBuffer {
|
||||
CopyOnWriteBuffer(CopyOnWriteBuffer&& buf);
|
||||
|
||||
// Construct a buffer from a string, convenient for unittests.
|
||||
CopyOnWriteBuffer(const std::string& s);
|
||||
explicit CopyOnWriteBuffer(absl::string_view s);
|
||||
|
||||
// Construct a buffer with the specified number of uninitialized bytes.
|
||||
explicit CopyOnWriteBuffer(size_t size);
|
||||
|
||||
Reference in New Issue
Block a user