blob: 8d085c2df37e10c0d0a2f95bf3ae188b8777b488 [file] [log] [blame]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "mojo/public/cpp/base/byte_count_mojom_traits.h"
#include "base/byte_count.h"
namespace mojo {
// static
bool StructTraits<mojo_base::mojom::ByteCountDataView, base::ByteCount>::Read(
mojo_base::mojom::ByteCountDataView data,
base::ByteCount* byte_count) {
*byte_count = base::ByteCount(data.count());
return true;
}
} // namespace mojo