CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
Macros
src/datafile/oMemoryMapped.cc File Reference

Implementation of file to memory mapping. More...

#include "oMemoryMapped.hh"
#include <stdexcept>
#include <cstdio>
#include <iostream>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>

Go to the source code of this file.

Macros

#define _LARGEFILE64_SOURCE
 
#define _FILE_OFFSET_BITS   64
 

Detailed Description

Implementation of file to memory mapping.

This class was taken from Stephan Brumme website and adapted to the CASToR project with almost no modifications. Many thanks to him! Copyright (c) 2013 Stephan Brumme. All rights reserved. see http://create.stephan-brumme.com/disclaimer.html

Definition in file src/datafile/oMemoryMapped.cc.

Macro Definition Documentation

◆ _FILE_OFFSET_BITS

#define _FILE_OFFSET_BITS   64

Definition at line 32 of file src/datafile/oMemoryMapped.cc.

◆ _LARGEFILE64_SOURCE

#define _LARGEFILE64_SOURCE

Definition at line 27 of file src/datafile/oMemoryMapped.cc.