# TMCBinaryFileIO Class Reference
[MCCore]

Inheritance diagram for TMCBinaryFileIO:

List of all members.

## Public Types
enum | EByteOrder { kBigEndian, kLittleEndian }
enum | EFileAccess { kReadFile, kWriteFile }
## Public Member Functions
| TMCBinaryFileIO (IMCFile *file, IMCFile::EFilePermission fileRead, EByteOrder fileByteOrder)
void | GetFileName (TMCString &fileName)
void | GetFullPathName (TMCString &fileName)
int32 | Tell ()
void | Seek (int32 offset, int8 origin)
## Protected Member Functions
void | ReorderIfNeeded (void *thing, int8 size)
boolean | SwapBytes ()
## Protected Attributes
EByteOrder | fByteOrder
IMCFile * | fFile

## Detailed Description

TMCBinaryFileIO is Used for reading from or writing to binary files. It converts from big to little endian and the reverse, as appropriate.

## Member Enumeration Documentation

enum TMCBinaryFileIO::EByteOrder

Enumerator:

  kBigEndian |
  kLittleEndian |

enum TMCBinaryFileIO::EFileAccess

Enumerator:

  kReadFile |
  kWriteFile |

## Constructor & Destructor Documentation

TMCBinaryFileIO::TMCBinaryFileIO | ( | IMCFile * | file,
|  | IMCFile::EFilePermission | fileRead,
|  | EByteOrder | fileByteOrder |
| ) |  |  |

## Member Function Documentation

void TMCBinaryFileIO::GetFileName | ( | TMCString & | fileName | ) | `[inline]`

void TMCBinaryFileIO::GetFullPathName | ( | TMCString & | fileName | ) | `[inline]`

void TMCBinaryFileIO::ReorderIfNeeded | ( | void * | thing,
|  | int8 | size |
| ) |  |  | `[protected]`

void TMCBinaryFileIO::Seek | ( | int32 | offset,
|  | int8 | origin |
| ) |  |  |

boolean TMCBinaryFileIO::SwapBytes | ( |  | ) | `[protected]`

int32 TMCBinaryFileIO::Tell | ( |  | ) |

## Member Data Documentation

EByteOrder TMCBinaryFileIO::fByteOrder`[protected]`

IMCFile* TMCBinaryFileIO::fFile`[protected]`

Reimplemented from TMCfstream.

The documentation for this class was generated from the following file:

- MCBinaryFileIO.h