mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-07-31 22:26:36 +08:00
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>
24 lines
713 B
C++
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
|