blob: 645791b69b48286c1471a9716381436b4a0a6628 [file] [log] [blame]
// Copyright 2020 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.
// Code generated by "measure-tape"; DO NOT EDIT.
//
// See tools/fidl/measure-tape/README.md
#ifndef LIB_UI_SCENIC_CPP_COMMANDS_SIZING_H_
#define LIB_UI_SCENIC_CPP_COMMANDS_SIZING_H_
#include <fuchsia/ui/scenic/cpp/fidl.h>
namespace measure_tape {
namespace fuchsia {
namespace ui {
namespace scenic {
struct Size {
explicit Size(int64_t num_bytes, int64_t num_handles)
: num_bytes(num_bytes), num_handles(num_handles) {}
const int64_t num_bytes;
const int64_t num_handles;
};
// Helper function to measure ::fuchsia::ui::scenic::Command.
//
// In most cases, the size returned is a precise size. Otherwise, the size
// returned is a safe upper-bound.
Size Measure(const ::fuchsia::ui::scenic::Command& value);
} // scenic
} // ui
} // fuchsia
} // measure_tape
#endif // LIB_UI_SCENIC_CPP_COMMANDS_SIZING_H_