ewmscp  ..
Public Member Functions | Public Attributes | List of all members
buffstuff Class Reference
Collaboration diagram for buffstuff:
[legend]

Public Member Functions

 buffstuff (unsigned int aBlockSize)
 

Public Attributes

std::vector< int > writeBuffer
 
decltype(writeBufferreadBuffer
 
unsigned int blockSize
 

Detailed Description

Definition at line 89 of file fileopstest.cpp.

Constructor & Destructor Documentation

◆ buffstuff()

buffstuff::buffstuff ( unsigned int  aBlockSize)
inline

Definition at line 91 of file fileopstest.cpp.

91  : blockSize(aBlockSize) {
92  writeBuffer.reserve(blockSize / sizeof(int));
93  readBuffer.reserve(blockSize / sizeof(int));
94 
95  for (unsigned int i = 0; i < writeBuffer.capacity(); i++) {
96  writeBuffer.emplace_back(~writeBuffer.capacity() - i);
97  }
98  }

References blockSize, readBuffer, and writeBuffer.

Member Data Documentation

◆ blockSize

unsigned int buffstuff::blockSize

Definition at line 101 of file fileopstest.cpp.

Referenced by buffstuff().

◆ readBuffer

decltype(writeBuffer) buffstuff::readBuffer

Definition at line 100 of file fileopstest.cpp.

Referenced by buffstuff(), and readAndDeleteFile().

◆ writeBuffer

std::vector<int> buffstuff::writeBuffer

Definition at line 99 of file fileopstest.cpp.

Referenced by buffstuff(), createFile(), and readAndDeleteFile().


The documentation for this class was generated from the following file:
buffstuff::readBuffer
decltype(writeBuffer) readBuffer
Definition: fileopstest.cpp:100
buffstuff::writeBuffer
std::vector< int > writeBuffer
Definition: fileopstest.cpp:99
buffstuff::blockSize
unsigned int blockSize
Definition: fileopstest.cpp:101