chromium/net/ntlm/ntlm_buffer_writer.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
#pragma allow_unsafe_buffers
#endif

#include "net/ntlm/ntlm_buffer_writer.h"

#include <string.h>

#include <limits>

#include "base/check_op.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"

namespace net::ntlm {

NtlmBufferWriter::NtlmBufferWriter(size_t buffer_len)
    :{}

NtlmBufferWriter::~NtlmBufferWriter() = default;

bool NtlmBufferWriter::CanWrite(size_t len) const {}

bool NtlmBufferWriter::WriteUInt16(uint16_t value) {}

bool NtlmBufferWriter::WriteUInt32(uint32_t value) {}

bool NtlmBufferWriter::WriteUInt64(uint64_t value) {}

bool NtlmBufferWriter::WriteFlags(NegotiateFlags flags) {}

bool NtlmBufferWriter::WriteBytes(base::span<const uint8_t> bytes) {}

bool NtlmBufferWriter::WriteZeros(size_t count) {}

bool NtlmBufferWriter::WriteSecurityBuffer(SecurityBuffer sec_buf) {}

bool NtlmBufferWriter::WriteAvPairHeader(TargetInfoAvId avid, uint16_t avlen) {}

bool NtlmBufferWriter::WriteAvPairTerminator() {}

bool NtlmBufferWriter::WriteAvPair(const AvPair& pair) {}

bool NtlmBufferWriter::WriteUtf8String(const std::string& str) {}

bool NtlmBufferWriter::WriteUtf16AsUtf8String(const std::u16string& str) {}

bool NtlmBufferWriter::WriteUtf8AsUtf16String(const std::string& str) {}

bool NtlmBufferWriter::WriteUtf16String(const std::u16string& str) {}

bool NtlmBufferWriter::WriteSignature() {}

bool NtlmBufferWriter::WriteMessageType(MessageType message_type) {}

bool NtlmBufferWriter::WriteMessageHeader(MessageType message_type) {}

template <typename T>
bool NtlmBufferWriter::WriteUInt(T value) {}

void NtlmBufferWriter::SetCursor(size_t cursor) {}

}  // namespace net::ntlm