#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "remoting/host/security_key/security_key_message_writer_impl.h"
#include <cstdint>
#include <string>
#include <utility>
#include "base/logging.h"
#include "remoting/host/security_key/security_key_message.h"
namespace remoting {
SecurityKeyMessageWriterImpl::SecurityKeyMessageWriterImpl(
base::File output_file)
: … { … }
SecurityKeyMessageWriterImpl::~SecurityKeyMessageWriterImpl() = default;
bool SecurityKeyMessageWriterImpl::WriteMessage(
SecurityKeyMessageType message_type) { … }
bool SecurityKeyMessageWriterImpl::WriteMessageWithPayload(
SecurityKeyMessageType message_type,
const std::string& message_payload) { … }
bool SecurityKeyMessageWriterImpl::WriteBytesToOutput(const char* message,
int bytes_to_write) { … }
}