blob: dbbb0b8c6b6bf083c6e3af13c311a45a7d57874d [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.
#ifndef SRC_DIAGNOSTICS_LIB_STREAMS_CPP_ENCODE_H_
#define SRC_DIAGNOSTICS_LIB_STREAMS_CPP_ENCODE_H_
#include <fuchsia/diagnostics/stream/cpp/fidl.h>
#include <zircon/status.h>
#include <vector>
namespace streams {
// log_record: writes a given record in trace format to the buffer
zx_status_t log_record(const fuchsia::diagnostics::stream::Record&, std::vector<uint8_t>*);
} // namespace streams
#endif // SRC_DIAGNOSTICS_LIB_STREAMS_CPP_ENCODE_H_