Go to the SVN repository for this file.
1 #ifndef UTIL___TRANSMISSIONRW__HPP 2 #define UTIL___TRANSMISSIONRW__HPP 66 size_t* bytes_read = 0);
88 template<
typenameTType =
char>
inline constTType* Data()
const;
89 inline size_tDataSize()
const;
90 inline char* Space();
91 inline size_tSpaceSize()
const;
92 inline voidAdd(
size_t count);
93 inline voidRemove(
size_t count);
122ESendEofPacket send_eof = eDontSendEofPacket );
126 size_t* bytes_written = 0);
IReader implementation with transmission control.
IReader & GetReader()
Get underlying reader.
CTransmissionReader(const CTransmissionReader &)
CTransmissionReader & operator=(const CTransmissionReader &)
size_t GetPacketBytesToRead() const
Uint4 m_PacketBytesToRead
IWriter with transmission control.
CTransmissionWriter & operator=(CTransmissionWriter &)
IWriter & GetWriter()
Get underlying writer.
@ eSendEofPacket
Writer will send EOF packet in the destructor.
size_t m_PacketBytesToWrite
void SetSendEof(ESendEofPacket flag)
CTransmissionWriter(const CTransmissionWriter &)
A very basic data-read interface.
A very basic data-write interface.
Abstract reader-writer interface classes.
@ eNoOwnership
No ownership is assumed.
void Write(CObjectOStream &out, TConstObjectPtr object, const CTypeRef &type)
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
ERW_Result
Result codes for I/O operations.
virtual ERW_Result PendingCount(size_t *count)=0
Via parameter "count" (which is guaranteed to be supplied non-NULL) return the number of bytes that a...
virtual ERW_Result Read(void *buf, size_t count, size_t *bytes_read=0)=0
Read as many as "count" bytes into a buffer pointed to by the "buf" argument.
enum ENcbiOwnership EOwnership
Ownership relations between objects.
void resize(vector< SMethodDef > &container)
const GenericPointer< typename T::ValueType > T2 value
NCBI C++ auxiliary debug macros.
Miscellaneous common-use basic types and functionality.
NCBI_XUTIL_EXPORT
Parameter to control printing diagnostic message about conversion of static array data from a differe...
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