NCBI C++ ToolKit
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SUv_Write Struct Reference

Search Toolkit Book for SUv_Write

#include <connect/impl/ncbi_uv_nghttp2.hpp>

+ Collaboration diagram for SUv_Write:

Classes

struct  SBuffer
 

Public Member Functions

 SUv_Write (void *user_data, size_t buf_size)
 
vector< char > & GetBuffer ()
 
int Write (uv_stream_t *handle, uv_write_cb cb)
 
void OnWrite (uv_write_t *req)
 
void Reset ()
 

Private Member Functions

void NewBuffer ()
 

Private Attributes

void *const m_UserData
 
const size_t m_BufSize
 
forward_list< SBufferm_Buffers
 
SBufferm_CurrentBuffer = nullptr
 

Detailed Description

Definition at line 132 of file ncbi_uv_nghttp2.hpp.

Constructor & Destructor Documentation

◆ SUv_Write()

SUv_Write::SUv_Write ( void *  user_data,
size_t  buf_size 
)

Definition at line 62 of file ncbi_uv_nghttp2.cpp.

References NCBI_UV_WRITE_TRACE, and NewBuffer().

Member Function Documentation

◆ GetBuffer()

vector<char>& SUv_Write::GetBuffer ( void  )
inline

Definition at line 136 of file ncbi_uv_nghttp2.hpp.

References _ASSERT, SUv_Write::SBuffer::data, and m_CurrentBuffer.

Referenced by SUv_Tcp::GetWriteBuffer().

◆ NewBuffer()

void SUv_Write::NewBuffer ( )
private

◆ OnWrite()

void SUv_Write::OnWrite ( uv_write_t *  req)

Definition at line 135 of file ncbi_uv_nghttp2.cpp.

References _ASSERT, _TROUBLE, buffer, m_Buffers, and NCBI_UV_WRITE_TRACE.

Referenced by SUv_Tcp::OnWrite().

◆ Reset()

void SUv_Write::Reset ( void  )

Definition at line 152 of file ncbi_uv_nghttp2.cpp.

References buffer, m_Buffers, and NCBI_UV_WRITE_TRACE.

Referenced by SUv_Tcp::Close().

◆ Write()

int SUv_Write::Write ( uv_stream_t *  handle,
uv_write_cb  cb 
)

Member Data Documentation

◆ m_Buffers

forward_list<SBuffer> SUv_Write::m_Buffers
private

Definition at line 153 of file ncbi_uv_nghttp2.hpp.

Referenced by NewBuffer(), OnWrite(), Reset(), and Write().

◆ m_BufSize

const size_t SUv_Write::m_BufSize
private

Definition at line 152 of file ncbi_uv_nghttp2.hpp.

Referenced by NewBuffer().

◆ m_CurrentBuffer

SBuffer* SUv_Write::m_CurrentBuffer = nullptr
private

Definition at line 154 of file ncbi_uv_nghttp2.hpp.

Referenced by GetBuffer(), NewBuffer(), and Write().

◆ m_UserData

void* const SUv_Write::m_UserData
private

Definition at line 151 of file ncbi_uv_nghttp2.hpp.

Referenced by NewBuffer().


The documentation for this struct was generated from the following files:
Modified on Wed May 29 18:34:58 2024 by modify_doxy.py rev. 669887