CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
IOBuffer Class Reference

#include <IOBuffer.h>

Public Member Functions

void * data (void) const
 
 IOBuffer (void)
 
 IOBuffer (void *data, IOSize length)
 
 IOBuffer (const void *data, IOSize length)
 
IOSize size (void) const
 

Private Attributes

void * m_data
 
IOSize m_length
 

Detailed Description

Buffer for I/O operations.

Definition at line 7 of file IOBuffer.h.

Constructor & Destructor Documentation

IOBuffer::IOBuffer ( void  )
inline

Construct a null I/O buffer.

Definition at line 24 of file IOBuffer.h.

25  : m_data (0),
26  m_length (0)
27 {}
void * m_data
Definition: IOBuffer.h:18
IOSize m_length
Definition: IOBuffer.h:19
IOBuffer::IOBuffer ( void *  data,
IOSize  length 
)
inline

Construct a I/O buffer for reading.

Definition at line 31 of file IOBuffer.h.

32  : m_data (data),
33  m_length (length)
34 {}
void * data(void) const
Definition: IOBuffer.h:45
void * m_data
Definition: IOBuffer.h:18
IOSize m_length
Definition: IOBuffer.h:19
IOBuffer::IOBuffer ( const void *  data,
IOSize  length 
)
inline

Construct a I/O buffer for writing.

Definition at line 38 of file IOBuffer.h.

39  : m_data (const_cast<void *> (data)),
40  m_length (length)
41 {}
void * data(void) const
Definition: IOBuffer.h:45
void * m_data
Definition: IOBuffer.h:18
IOSize m_length
Definition: IOBuffer.h:19

Member Function Documentation

void * IOBuffer::data ( void  ) const
inline

Return a pointer to the beginning of the buffer's data area.

Definition at line 45 of file IOBuffer.h.

References m_data.

Referenced by IOInput::read(), Storage::read(), DavixFile::readv(), IOOutput::write(), Storage::write(), IOInput::xread(), and IOOutput::xwrite().

46 { return m_data; }
void * m_data
Definition: IOBuffer.h:18
IOSize IOBuffer::size ( void  ) const
inline

Member Data Documentation

void* IOBuffer::m_data
private

Definition at line 18 of file IOBuffer.h.

Referenced by data().

IOSize IOBuffer::m_length
private

Definition at line 19 of file IOBuffer.h.

Referenced by size().