xbmc
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
NPT_BufferedInputStream Class Reference
Inheritance diagram for NPT_BufferedInputStream:
Inheritance graph
[legend]
Collaboration diagram for NPT_BufferedInputStream:
Collaboration graph
[legend]

Public Member Functions

 NPT_BufferedInputStream (NPT_InputStreamReference &stream, NPT_Size buffer_size=NPT_BUFFERED_BYTE_STREAM_DEFAULT_SIZE)
 
virtual NPT_Result ReadLine (NPT_String &line, NPT_Size max_chars=4096, bool break_on_cr=false)
 
virtual NPT_Result ReadLine (char *buffer, NPT_Size buffer_size, NPT_Size *chars_read=NULL, bool break_on_cr=false)
 
virtual NPT_Result SetBufferSize (NPT_Size size, bool force=false)
 
virtual NPT_Result Peek (void *buffer, NPT_Size bytes_to_read, NPT_Size *bytes_read)
 
NPT_Result Read (void *buffer, NPT_Size bytes_to_read, NPT_Size *bytes_read=NULL) override
 
NPT_Result Seek (NPT_Position offset) override
 
NPT_Result Tell (NPT_Position &offset) override
 
NPT_Result GetSize (NPT_LargeSize &size) override
 
NPT_Result GetAvailable (NPT_LargeSize &available) override
 
- Public Member Functions inherited from NPT_InputStream
virtual NPT_Result Load (NPT_DataBuffer &buffer, NPT_Size max_read=0)
 
virtual NPT_Result ReadFully (void *buffer, NPT_Size bytes_to_read)
 
virtual NPT_Result Skip (NPT_Size offset)
 
NPT_Result ReadUI64 (NPT_UInt64 &value)
 
NPT_Result ReadUI32 (NPT_UInt32 &value)
 
NPT_Result ReadUI24 (NPT_UInt32 &value)
 
NPT_Result ReadUI16 (NPT_UInt16 &value)
 
NPT_Result ReadUI08 (NPT_UInt8 &value)
 

Protected Member Functions

virtual NPT_Result FillBuffer ()
 
virtual NPT_Result ReleaseBuffer ()
 

Protected Attributes

NPT_InputStreamReference m_Source
 
NPT_Position m_Position
 
bool m_SkipNewline
 
bool m_Eos
 
struct {
   NPT_Byte *   data
 
   NPT_Size   offset
 
   NPT_Size   valid
 
   NPT_Size   size
 
m_Buffer
 

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