Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | List of all members
cIdentityTEParser Class Reference
Inheritance diagram for cIdentityTEParser:
Inheritance graph
[legend]
Collaboration diagram for cIdentityTEParser:
Collaboration graph
[legend]

Public Member Functions

 cIdentityTEParser (cCallbacks &a_Callbacks, size_t a_ContentLength)
 
- Public Member Functions inherited from cTransferEncodingParser
virtual ~cTransferEncodingParser ()
 

Protected Member Functions

virtual void Finish (void) override
 To be called when the stream is terminated from the source (connection closed). More...
 
virtual size_t Parse (const char *a_Data, size_t a_Size) override
 Parses the incoming data and calls the appropriate callbacks. More...
 
- Protected Member Functions inherited from cTransferEncodingParser
 cTransferEncodingParser (cCallbacks &a_Callbacks)
 

Protected Attributes

size_t m_BytesLeft
 How many bytes of content are left before the message ends. More...
 
- Protected Attributes inherited from cTransferEncodingParser
cCallbacksm_Callbacks
 The callbacks used to report progress. More...
 

Private Types

using Super = cTransferEncodingParser
 

Additional Inherited Members

- Static Public Member Functions inherited from cTransferEncodingParser
static cTransferEncodingParserPtr Create (cCallbacks &a_Callbacks, const AString &a_TransferEncoding, size_t a_ContentLength)
 Creates a new parser for the specified encoding. More...
 

Detailed Description

Definition at line 319 of file TransferEncodingParser.cpp.

Member Typedef Documentation

◆ Super

Definition at line 322 of file TransferEncodingParser.cpp.

Constructor & Destructor Documentation

◆ cIdentityTEParser()

cIdentityTEParser::cIdentityTEParser ( cCallbacks a_Callbacks,
size_t  a_ContentLength 
)
inline

Definition at line 326 of file TransferEncodingParser.cpp.

Member Function Documentation

◆ Finish()

virtual void cIdentityTEParser::Finish ( void  )
inlineoverrideprotectedvirtual

To be called when the stream is terminated from the source (connection closed).

Flushes any buffers and calls appropriate callbacks.

Implements cTransferEncodingParser.

Definition at line 353 of file TransferEncodingParser.cpp.

◆ Parse()

virtual size_t cIdentityTEParser::Parse ( const char *  a_Data,
size_t  a_Size 
)
inlineoverrideprotectedvirtual

Parses the incoming data and calls the appropriate callbacks.

Returns the number of bytes from the end of a_Data that is already not part of this message (if the parser can detect it). Returns AString::npos on an error.

Implements cTransferEncodingParser.

Definition at line 338 of file TransferEncodingParser.cpp.

Member Data Documentation

◆ m_BytesLeft

size_t cIdentityTEParser::m_BytesLeft
protected

How many bytes of content are left before the message ends.

Definition at line 335 of file TransferEncodingParser.cpp.


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