1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-07-30 14:43:05 +03:00

Make a MutableByteRange typealias

Summary: See title

Differential Revision: D73621432

fbshipit-source-id: fd144f097ca80ffe04aab06c2412eed438de3f5b
This commit is contained in:
Aman Sharma
2025-04-25 10:38:49 -07:00
committed by Facebook GitHub Bot
parent 7d4f053bf7
commit 7b7c3eb88f
6 changed files with 33 additions and 33 deletions

View File

@ -1528,8 +1528,8 @@ void encryptPacketHeader(
encryptedBody += sampleBytesToUse;
memcpy(sample.data(), encryptedBody, sample.size());
folly::MutableByteRange initialByteRange(header, 1);
folly::MutableByteRange packetNumByteRange(
MutableByteRange initialByteRange(header, 1);
MutableByteRange packetNumByteRange(
header + headerLen - packetNumberLength, packetNumberLength);
if (headerForm == HeaderForm::Short) {
headerCipher.encryptShortHeader(