CMS 3D CMS Logo

Public Member Functions | Private Attributes

IOBuffer Class Reference

#include <IOBuffer.h>

List of all members.

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.

  : m_data (0),
    m_length (0)
{}
IOBuffer::IOBuffer ( void *  data,
IOSize  length 
) [inline]

Construct a I/O buffer for reading.

Definition at line 31 of file IOBuffer.h.

  : m_data (data),
    m_length (length)
{}
IOBuffer::IOBuffer ( const void *  data,
IOSize  length 
) [inline]

Construct a I/O buffer for writing.

Definition at line 38 of file IOBuffer.h.

  : m_data (const_cast<void *> (data)),
    m_length (length)
{}

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(), Storage::write(), IOOutput::write(), IOInput::xread(), and IOOutput::xwrite().

{ return m_data; }
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().

Definition at line 19 of file IOBuffer.h.

Referenced by size().