mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-24 04:01:07 +03:00
Introduce a "BufHelpers" typealias
Summary: This introduces a more generic typealias so that we can, for instance, write `BufHelpers::createCombined` instead of `folly::IOBuf::createCombined`. Reviewed By: jbeshay Differential Revision: D73127508 fbshipit-source-id: d585790904efc8e9f92d79cbf766bafe0e84a69f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
44561513a5
commit
2f33a3681a
@@ -47,7 +47,7 @@ QuicAsyncUDPSocket::RecvResult QuicAsyncUDPSocketImpl::recvmmsgNetworkData(
|
||||
struct msghdr* msg = &msgs[i].msg_hdr;
|
||||
|
||||
if (!readBuffer) {
|
||||
readBuffer = folly::IOBuf::createCombined(readBufferSize);
|
||||
readBuffer = BufHelpers::createCombined(readBufferSize);
|
||||
iovec.iov_base = readBuffer->writableData();
|
||||
iovec.iov_len = readBufferSize;
|
||||
msg->msg_iov = &iovec;
|
||||
|
||||
Reference in New Issue
Block a user