CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
IOPosBuffer Struct Reference

#include <IOPosBuffer.h>

Public Member Functions

void * data (void) const
 
 IOPosBuffer (void)
 
 IOPosBuffer (IOOffset offset, void *data, IOSize length)
 
 IOPosBuffer (IOOffset offset, const void *data, IOSize length)
 
IOOffset offset (void) const
 
IOSize size (void) const
 

Private Attributes

void * m_data
 
IOSize m_length
 
IOOffset m_offset
 

Detailed Description

Buffer for I/O operations.

Definition at line 7 of file IOPosBuffer.h.

Constructor & Destructor Documentation

IOPosBuffer::IOPosBuffer ( void  )
inline

Construct a null I/O buffer.

Definition at line 26 of file IOPosBuffer.h.

27  : m_offset (0),
28  m_data (0),
29  m_length (0)
30 {}
IOSize m_length
Definition: IOPosBuffer.h:21
IOOffset m_offset
Definition: IOPosBuffer.h:19
void * m_data
Definition: IOPosBuffer.h:20
IOPosBuffer::IOPosBuffer ( IOOffset  offset,
void *  data,
IOSize  length 
)
inline

Construct a I/O buffer for reading.

Definition at line 34 of file IOPosBuffer.h.

35  : m_offset (offset),
36  m_data (data),
37  m_length (length)
38 {}
IOSize m_length
Definition: IOPosBuffer.h:21
IOOffset m_offset
Definition: IOPosBuffer.h:19
IOOffset offset(void) const
Definition: IOPosBuffer.h:50
void * m_data
Definition: IOPosBuffer.h:20
void * data(void) const
Definition: IOPosBuffer.h:55
IOPosBuffer::IOPosBuffer ( IOOffset  offset,
const void *  data,
IOSize  length 
)
inline

Construct a I/O buffer for writing.

Definition at line 42 of file IOPosBuffer.h.

43  : m_offset (offset),
44  m_data (const_cast<void *> (data)),
45  m_length (length)
46 {}
IOSize m_length
Definition: IOPosBuffer.h:21
IOOffset m_offset
Definition: IOPosBuffer.h:19
IOOffset offset(void) const
Definition: IOPosBuffer.h:50
void * m_data
Definition: IOPosBuffer.h:20
void * data(void) const
Definition: IOPosBuffer.h:55

Member Function Documentation

void * IOPosBuffer::data ( void  ) const
inline

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

Definition at line 55 of file IOPosBuffer.h.

References m_data.

56 { return m_data; }
void * m_data
Definition: IOPosBuffer.h:20
IOOffset IOPosBuffer::offset ( void  ) const
inline

Return the file offset where I/O is expected to occur.

Definition at line 50 of file IOPosBuffer.h.

References m_offset.

Referenced by LocalCacheFile::prefetch(), XrdFile::prefetch(), RFIOFile::prefetch(), File::prefetch(), LocalCacheFile::readv(), DCacheFile::readv(), and XrdFile::readv().

51 { return m_offset; }
IOOffset m_offset
Definition: IOPosBuffer.h:19
IOSize IOPosBuffer::size ( void  ) const
inline

Return the buffer's size.

Definition at line 60 of file IOPosBuffer.h.

References m_length.

Referenced by LocalCacheFile::prefetch(), XrdFile::prefetch(), RFIOFile::prefetch(), File::prefetch(), LocalCacheFile::readv(), DCacheFile::readv(), and XrdFile::readv().

61 { return m_length; }
IOSize m_length
Definition: IOPosBuffer.h:21

Member Data Documentation

void* IOPosBuffer::m_data
private

Definition at line 20 of file IOPosBuffer.h.

Referenced by data().

IOSize IOPosBuffer::m_length
private

Definition at line 21 of file IOPosBuffer.h.

Referenced by size().

IOOffset IOPosBuffer::m_offset
private

Definition at line 19 of file IOPosBuffer.h.

Referenced by offset().