HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_MemBuffer Class Referencefinal

#include <NET_MemBuffer.h>

+ Inheritance diagram for NET_MemBuffer:

Public Member Functions

exint bytesAvailable () const override
 
exint read (char *data, exint max_size) override
 
UT_Array< char > read (exint max_size) override
 
UT_Array< char > readAll () override
 
bool seek (exint pos) override
 
exint size () const override
 
exint write (const char *data, exint max_size) override
 
exint write (const char *data) override
 
exint write (const UT_Array< char > &data) override
 
exint pos () const override
 
- Public Member Functions inherited from NET_IODevice
virtual ~NET_IODevice ()=default
 
 UT_NON_COPYABLE (NET_IODevice)
 
virtual bool atEnd () const
 
virtual void close ()
 
virtual bool open (OpenMode mode)
 
virtual bool isSequential () const
 
const UT_ErrorCodeerror () const
 
const UT_StringHoldermime () const
 
void setMime (const UT_StringHolder &mime)
 
OpenMode mode () const
 
bool isReadable () const
 
bool isWriteable () const
 

Additional Inherited Members

- Public Types inherited from NET_IODevice
using OpenMode = NET_IODeviceOpenMode
 
- Protected Member Functions inherited from NET_IODevice
 NET_IODevice ()=default
 
- Protected Attributes inherited from NET_IODevice
UT_ErrorCode myError
 
UT_StringHolder myMime
 
OpenMode myMode = OpenMode::NotOpen
 

Detailed Description

Definition at line 22 of file NET_MemBuffer.h.

Member Function Documentation

exint NET_MemBuffer::bytesAvailable ( ) const
overridevirtual

Implements NET_IODevice.

exint NET_MemBuffer::pos ( ) const
inlineoverridevirtual

Implements NET_IODevice.

Definition at line 34 of file NET_MemBuffer.h.

exint NET_MemBuffer::read ( char *  data,
exint  max_size 
)
overridevirtual

Reimplemented from NET_IODevice.

UT_Array<char> NET_MemBuffer::read ( exint  max_size)
overridevirtual

Reimplemented from NET_IODevice.

UT_Array<char> NET_MemBuffer::readAll ( )
overridevirtual

Reimplemented from NET_IODevice.

bool NET_MemBuffer::seek ( exint  pos)
overridevirtual

Reimplemented from NET_IODevice.

exint NET_MemBuffer::size ( ) const
overridevirtual

Reimplemented from NET_IODevice.

exint NET_MemBuffer::write ( const char *  data,
exint  max_size 
)
overridevirtual

Reimplemented from NET_IODevice.

exint NET_MemBuffer::write ( const char *  data)
overridevirtual

Reimplemented from NET_IODevice.

exint NET_MemBuffer::write ( const UT_Array< char > &  data)
overridevirtual

Reimplemented from NET_IODevice.


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