blob: c4497e4f6679a90d9a158dd435355cfb12f0efc7 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_FUCHSIA_COMPONENT_SUPPORT_SERIALIZE_ARGUMENTS_H_
#define COMPONENTS_FUCHSIA_COMPONENT_SUPPORT_SERIALIZE_ARGUMENTS_H_
#include <stdint.h>
#include <vector>
namespace base {
class CommandLine;
}
namespace fuchsia_component_support {
// Serializes everything but the program name from `command_line` into a
// sequence of bytes. See AppendArgumentsFromFile for the converse.
std::vector<uint8_t> SerializeArguments(const base::CommandLine& command_line);
} // namespace fuchsia_component_support
#endif // COMPONENTS_FUCHSIA_COMPONENT_SUPPORT_SERIALIZE_ARGUMENTS_H_