In rtc::ByteBuffer drop support for ORDER_HOST as unused

Bug: None
Change-Id: Ideab428b13d981cddf9784cfd07fb7dfb2e914fe
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/159698
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29803}
This commit is contained in:
Danil Chapovalov
2019-11-14 17:40:23 +01:00
committed by Commit Bot
parent 74f35e48d5
commit 7b46e17c31
7 changed files with 163 additions and 233 deletions

View File

@ -169,8 +169,7 @@ bool WriteDataChannelOpenMessage(const std::string& label,
}
rtc::ByteBufferWriter buffer(NULL,
20 + label.length() + config.protocol.length(),
rtc::ByteBuffer::ORDER_NETWORK);
20 + label.length() + config.protocol.length());
// TODO(tommi): Add error handling and check resulting length.
buffer.WriteUInt8(DATA_CHANNEL_OPEN_MESSAGE_TYPE);
buffer.WriteUInt8(channel_type);