Mantid
Loading...
Searching...
No Matches
Macros | Functions
byte_rel_comp.cpp File Reference
#include <iostream>
#include <stdexcept>
#include "byte_rel_comp.h"

Go to the source code of this file.

Macros

#define FAILURE   1
 
#define LARGE_NUMBER   1073741824
 
#define SUCCESS   0
 

Functions

int byte_rel_comp (const int *data_in, int n_in, char *data_out, int max_out, int &n_out)
 
int byte_rel_expn (const char *data_in, int n_in, int n_from, int *data_out, int n_out)
 

Macro Definition Documentation

◆ FAILURE

#define FAILURE   1

Definition at line 26 of file byte_rel_comp.cpp.

◆ LARGE_NUMBER

#define LARGE_NUMBER   1073741824

Definition at line 24 of file byte_rel_comp.cpp.

◆ SUCCESS

#define SUCCESS   0

Definition at line 27 of file byte_rel_comp.cpp.

Function Documentation

◆ byte_rel_comp()

int byte_rel_comp ( const int *  data_in,
int  n_in,
char *  data_out,
int  max_out,
int &  n_out 
)

Definition at line 36 of file byte_rel_comp.cpp.

References LARGE_NUMBER, and SUCCESS.

Referenced by ISISRAW::ioRAW().

◆ byte_rel_expn()

int byte_rel_expn ( const char *  data_in,
int  n_in,
int  n_from,
int *  data_out,
int  n_out 
)

Definition at line 119 of file byte_rel_comp.cpp.

References SUCCESS.

Referenced by ISISRAW::ioRAW(), and ISISRAW2::readData().