1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-30 03:41:25 +03:00

Introduce a ByteRange typealias

Summary: See title

Reviewed By: kvtsoy

Differential Revision: D73444489

fbshipit-source-id: f83566ce023e8237335d3bb43d89fc471f053afa
This commit is contained in:
Aman Sharma
2025-04-22 23:17:46 -07:00
committed by Facebook GitHub Bot
parent 048e64e2f1
commit bcbe5adce4
43 changed files with 126 additions and 139 deletions

View File

@@ -87,7 +87,7 @@ void FileQLogger::writeToStream(folly::StringPiece message) {
bool inputConsumed = false;
while (!inputConsumed) {
compressionBuffer_->clear();
folly::ByteRange inputRange(message);
ByteRange inputRange(message);
auto outputRange = folly::MutableByteRange(
compressionBuffer_->writableData(), compressionBuffer_->capacity());
compressionCodec_->compressStream(inputRange, outputRange);
@@ -148,7 +148,7 @@ void FileQLogger::finishStream() {
bool ended = false;
while (!ended) {
compressionBuffer_->clear();
folly::ByteRange inputRange(folly::StringPiece(""));
ByteRange inputRange(folly::StringPiece(""));
auto outputRange = folly::MutableByteRange(
compressionBuffer_->writableData(), compressionBuffer_->capacity());
ended = compressionCodec_->compressStream(