1
0
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:
Aman Sharma
2025-04-17 11:57:01 -07:00
committed by Facebook GitHub Bot
parent 44561513a5
commit 2f33a3681a
34 changed files with 82 additions and 82 deletions

View File

@@ -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;