blob: 7a0df1dbfce234d9bd2f8d9ff0d0f597badfdabb [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <blobfs/operation.h>
namespace blobfs {
uint64_t BlockCount(const fbl::Vector<UnbufferedOperation>& operations) {
uint64_t total_length = 0;
for (const auto& operation: operations) {
total_length += operation.op.length;
}
return total_length;
}
} // namespace blobfs