pdfium/core/fxcodec/data_and_bytes_consumed.cpp
Lei Zhang 4bf2bb0063 Rename DataVectorAndBytesConsumed to DataAndBytesConsumed
Now that the original DataAndBytesConsumed is gone,
DataVectorAndBytesConsumed can take its place and use its name.

Bug: pdfium:1872
Change-Id: Idbe09215d3c6eb7ddb27ff424d67acadf9ed866f
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/119325
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Thomas Sepez <tsepez@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2024-05-21 04:59:08 +00:00

24 lines
713 B
C++

// Copyright 2024 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/fxcodec/data_and_bytes_consumed.h"
#include <utility>
namespace fxcodec {
DataAndBytesConsumed::DataAndBytesConsumed(DataVector<uint8_t> data,
uint32_t bytes_consumed)
: data(std::move(data)), bytes_consumed(bytes_consumed) {}
DataAndBytesConsumed::DataAndBytesConsumed(DataAndBytesConsumed&&) noexcept =
default;
DataAndBytesConsumed& DataAndBytesConsumed::operator=(
DataAndBytesConsumed&&) noexcept = default;
DataAndBytesConsumed::~DataAndBytesConsumed() = default;
} // namespace fxcodec