rtc::Buffer: Restore length method for backwards compatibility
TBR=tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/43939004 Cr-Commit-Position: refs/heads/master@{#8845} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8845 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
deafa7b3c9
commit
4d14592c67
@ -34,6 +34,10 @@ class Buffer {
|
||||
size_t size() const { return size_; }
|
||||
size_t capacity() const { return capacity_; }
|
||||
|
||||
// For backwards compatibility. TODO(kwiberg): Remove once Chromium doesn't
|
||||
// need it anymore.
|
||||
size_t length() const { return size(); }
|
||||
|
||||
Buffer& operator=(const Buffer& buf) {
|
||||
if (&buf != this) {
|
||||
Construct(buf.data(), buf.size(), buf.size());
|
||||
|
Loading…
x
Reference in New Issue
Block a user