mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-07-29 03:41:11 +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
@ -377,7 +377,7 @@ iobufChainBasedBuildScheduleEncrypt(
|
||||
packet->header.coalesce();
|
||||
auto headerLen = packet->header.length();
|
||||
auto bodyLen = packet->body.computeChainDataLength();
|
||||
auto unencrypted = folly::IOBuf::createCombined(
|
||||
auto unencrypted = BufHelpers::createCombined(
|
||||
headerLen + bodyLen + aead.getCipherOverhead());
|
||||
auto bodyCursor = folly::io::Cursor(&packet->body);
|
||||
bodyCursor.pull(unencrypted->writableData() + headerLen, bodyLen);
|
||||
|
Reference in New Issue
Block a user