DiskBuffer class implements a first-in-first-out (FIFO) data structure stored on physical disc instead of memory.
More...
#include "memory.h"
#include <string.h>
#include <mutex>
#include "fifo_buffer_base.h"
#include <fstream>
#include "risingdelay.h"
#include <experimental/filesystem>
Go to the source code of this file.
|
| template<typename T > |
| size_t | transferBuffer (IDirectArraySourceBuffer< T > &source, DiskBuffer< T > &target, bool incrementPosition=true, size_t samplesCount=(std::numeric_limits< size_t >::max)()) |
| | Transferring data from source buffer to disk buffer without intermediate buffer. More...
|
| |
| template<typename T > |
| size_t | transferBuffer (DiskBuffer< T > &source, IDirectArrayTargetBuffer< T > &target, bool incrementPosition=true, size_t samplesCount=(std::numeric_limits< size_t >::max)()) |
| | Transferring data from disk buffer to target buffer without intermediate buffer. More...
|
| |
DiskBuffer class implements a first-in-first-out (FIFO) data structure stored on physical disc instead of memory.
- Author
- Boris Laharnar
- Date
- 22/10/2019
- Version
- 1.0
◆ transferBuffer() [1/2]
template<typename T >
| size_t transferBuffer |
( |
IDirectArraySourceBuffer< T > & |
source, |
|
|
DiskBuffer< T > & |
target, |
|
|
bool |
incrementPosition = true, |
|
|
size_t |
samplesCount = (std::numeric_limits<size_t>::max)() |
|
) |
| |
Transferring data from source buffer to disk buffer without intermediate buffer.
- Parameters
-
| source | source buffer |
| target | disk buffer as target |
| incrementPosition | an option if change position |
| samplesCount | a number of samples to be transferred |
- Returns
- number of transferred samples
◆ transferBuffer() [2/2]
template<typename T >
| size_t transferBuffer |
( |
DiskBuffer< T > & |
source, |
|
|
IDirectArrayTargetBuffer< T > & |
target, |
|
|
bool |
incrementPosition = true, |
|
|
size_t |
samplesCount = (std::numeric_limits<size_t>::max)() |
|
) |
| |
Transferring data from disk buffer to target buffer without intermediate buffer.
- Parameters
-
| source | disk buffer as source |
| target | destination buffer |
| incrementPosition | an option if change position |
| samplesCount | a number of samples to be transferred |
- Returns
- number of transferred samples