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 (const void *data, IOSize length)
 
 IOBuffer (void *data, IOSize length)
 
 IOBuffer (void)
 
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() [1/3]

IOBuffer::IOBuffer ( void  )
inline

Construct a null I/O buffer.

Definition at line 22 of file IOBuffer.h.

22 : m_data(nullptr), m_length(0) {}

◆ IOBuffer() [2/3]

IOBuffer::IOBuffer ( void *  data,
IOSize  length 
)
inline

Construct a I/O buffer for reading.

Definition at line 25 of file IOBuffer.h.

25 : m_data(data), m_length(length) {}

◆ IOBuffer() [3/3]

IOBuffer::IOBuffer ( const void *  data,
IOSize  length 
)
inline

Construct a I/O buffer for writing.

Definition at line 28 of file IOBuffer.h.

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

Member Function Documentation

◆ data()

void * IOBuffer::data ( void  ) const
inline

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

Definition at line 31 of file IOBuffer.h.

31 { return m_data; }

References m_data.

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

◆ size()

IOSize IOBuffer::size ( void  ) const
inline

Member Data Documentation

◆ m_data

void* IOBuffer::m_data
private

Definition at line 17 of file IOBuffer.h.

Referenced by data().

◆ m_length

IOSize IOBuffer::m_length
private

Definition at line 18 of file IOBuffer.h.

Referenced by size().

IOBuffer::m_data
void * m_data
Definition: IOBuffer.h:17
IOBuffer::m_length
IOSize m_length
Definition: IOBuffer.h:18
IOBuffer::data
void * data(void) const
Definition: IOBuffer.h:31