A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCCgiStreamWrapperWriter.html below:

NCBI C++ ToolKit: CCgiStreamWrapperWriter Class Reference

Search Toolkit Book for CCgiStreamWrapperWriter

Definition at line 171 of file cgiapp.cpp.

◆ CCgiStreamWrapperWriter() ◆ ~CCgiStreamWrapperWriter() CCgiStreamWrapperWriter::~CCgiStreamWrapperWriter ( void  ) virtual ◆ AbortChunkedTransfer() void CCgiStreamWrapperWriter::AbortChunkedTransfer ( void  ) ◆ FinishChunkedTransfer() ◆ Flush() ERW_Result CCgiStreamWrapperWriter::Flush ( void  ) virtual ◆ GetMode() ◆ SetCacheStream() void CCgiStreamWrapperWriter::SetCacheStream ( CNcbiOstreamstream ) ◆ SetMode()

Definition at line 335 of file cgiapp.cpp.

References _ASSERT, CCgiStreamWrapper::eBlockWrites, CCgiStreamWrapper::eChunkedWrites, CCgiStreamWrapper::eNormal, CCgiResponse::GetChunkSize(), m_Mode, m_Out, m_UsedChunkedTransfer, and x_SetChunkSize().

Referenced by AbortChunkedTransfer(), FinishChunkedTransfer(), and CCgiStreamWrapper::SetWriterMode().

◆ Write() ERW_Result CCgiStreamWrapperWriter::Write ( const void *  buf, size_t  count, size_t *  bytes_written = 0  ) virtual

Write up to "count" bytes from the buffer pointed to by the "buf" argument onto the output device.

Always store the number of bytes actually written, or 0 if "count" has been passed as 0 ("buf" must be ignored in this case), via the "bytes_written" pointer, if provided non-NULL. Note that the method can return non-eRW_Success in case of an I/O error along with indicating (some) data delivered to the output device (and reflected in "*bytes_written").

Note
Apparently, may not return eRW_Success if hasn't been able to write "count" bytes as requested, and "bytes_written" was passed as NULL.
When returning "*bytes_written" as zero for a non-zero "count" requested, the return status should not indicate eRW_Success.
Warning
"*bytes_written" may never be returned greater than "count".
Attention
It is implementation-dependent whether the call blocks until the entire buffer or only some data has been written out. In general, it is advised that this call is made within a loop that checks for errors and proceeds with the writing until the required amount of data has been sent.

Implements IWriter.

Definition at line 236 of file cgiapp.cpp.

References buf, count, CCgiStreamWrapper::eBlockWrites, CCgiStreamWrapper::eChunkedWrites, CCgiStreamWrapper::eNormal, ERR_POST_X, eRW_Error, eRW_Success, m_Chunk, m_ChunkSize, m_Count, m_ErrorReported, m_Mode, m_Out, m_UsedChunkedTransfer, min(), result, and x_WriteChunk().

◆ x_SetChunkSize() void CCgiStreamWrapperWriter::x_SetChunkSize ( size_t  sz ) private ◆ x_WriteChunk() void CCgiStreamWrapperWriter::x_WriteChunk ( const char *  buf, size_t  count  ) private ◆ m_Chunk char* CCgiStreamWrapperWriter::m_Chunk private ◆ m_ChunkSize size_t CCgiStreamWrapperWriter::m_ChunkSize private ◆ m_Count size_t CCgiStreamWrapperWriter::m_Count private ◆ m_ErrorReported bool CCgiStreamWrapperWriter::m_ErrorReported private ◆ m_Mode ◆ m_Out ◆ m_UsedChunkedTransfer bool CCgiStreamWrapperWriter::m_UsedChunkedTransfer private

The documentation for this class was generated from the following file:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4