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:
committed by
Facebook GitHub Bot
parent
048e64e2f1
commit
bcbe5adce4
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user