14 #ifndef STXXL_IO_MEM_FILE_HEADER
15 #define STXXL_IO_MEM_FILE_HEADER
37 int queue_id = DEFAULT_QUEUE,
int allocator_id = NO_ALLOCATOR) :
disk_queued_file(queue_id, allocator_id), ptr(NULL), sz(0)
42 void set_size(offset_type newsize);
44 void discard(offset_type offset, offset_type size);
45 const char * io_type()
const;
52 #endif // !STXXL_IO_MEM_FILE_HEADER
mem_file(int queue_id=DEFAULT_QUEUE, int allocator_id=NO_ALLOCATOR)
constructs file object.
#define STXXL_BEGIN_NAMESPACE
Implementation of some file methods based on serving_request.
Implementation of file based on new[] and memcpy.
void discard(StreamAlgorithm_ &in)
Reads stream content and discards it. Useful where you do not need the processed stream anymore...
Request with basic properties like file and offset.
#define STXXL_END_NAMESPACE