| // 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 |