CMS 3D CMS Logo

IOBuffer Class Reference

Buffer for I/O operations. More...

#include <Utilities/StorageFactory/interface/IOBuffer.h>

List of all members.

Public Member Functions

voiddata (void) const
 Return a pointer to the beginning of the buffer's data area.
 IOBuffer (const void *data, IOSize length)
 Construct a I/O buffer for writing.
 IOBuffer (void *data, IOSize length)
 Construct a I/O buffer for reading.
 IOBuffer (void)
 Construct a null I/O buffer.
IOSize size (void) const
 Return the buffer's size.

Private Attributes

voidm_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.

00025   : m_data (0),
00026     m_length (0)
00027 {}

IOBuffer::IOBuffer ( void data,
IOSize  length 
) [inline]

Construct a I/O buffer for reading.

Definition at line 31 of file IOBuffer.h.

00032   : m_data (data),
00033     m_length (length)
00034 {}

IOBuffer::IOBuffer ( const void data,
IOSize  length 
) [inline]

Construct a I/O buffer for writing.

Definition at line 38 of file IOBuffer.h.

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


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().

00046 { return m_data; }

IOSize IOBuffer::size ( void   )  const [inline]

Return the buffer's size.

Definition at line 50 of file IOBuffer.h.

References m_length.

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

00051 { return m_length; }


Member Data Documentation

void* IOBuffer::m_data [private]

Definition at line 18 of file IOBuffer.h.

Referenced by data(), and lat::IOBuffer::data().

IOSize IOBuffer::m_length [private]

Definition at line 19 of file IOBuffer.h.

Referenced by lat::IOBuffer::size(), and size().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:25:54 2009 for CMSSW by  doxygen 1.5.4