byteman  1.3 (Build #225)
Bitstream relocation and manipulation tool
Namespaces | Functions
FileIO.h File Reference
#include <iostream>
#include <cstdint>
#include <fstream>
#include <string>
#include "Endianness.h"
Include dependency graph for FileIO.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 FileIO
 

Functions

uint16_t FileIO::read16 (std::ifstream &fin, Endianness e=Endianness::NATIVE)
 
uint32_t FileIO::read32 (std::ifstream &fin, Endianness e=Endianness::NATIVE)
 
uint64_t FileIO::read64 (std::ifstream &fin, Endianness e=Endianness::NATIVE)
 
uint8_t FileIO::read8 (std::ifstream &fin, Endianness e=Endianness::NATIVE)
 
uint16_t FileIO::readBigEndian16 (std::ifstream &fin)
 
uint32_t FileIO::readBigEndian32 (std::ifstream &fin)
 
uint64_t FileIO::readBigEndian64 (std::ifstream &fin)
 
uint8_t FileIO::readBigEndian8 (std::ifstream &fin)
 
uint16_t FileIO::readBitSwappedBigEndian16 (std::ifstream &fin)
 
uint32_t FileIO::readBitSwappedBigEndian32 (std::ifstream &fin)
 
uint64_t FileIO::readBitSwappedBigEndian64 (std::ifstream &fin)
 
uint8_t FileIO::readBitSwappedBigEndian8 (std::ifstream &fin)
 
uint16_t FileIO::readBitSwappedLittleEndian16 (std::ifstream &fin)
 
uint32_t FileIO::readBitSwappedLittleEndian32 (std::ifstream &fin)
 
uint64_t FileIO::readBitSwappedLittleEndian64 (std::ifstream &fin)
 
uint8_t FileIO::readBitSwappedLittleEndian8 (std::ifstream &fin)
 
std::string FileIO::readBitSwappedString (std::ifstream &fin, int stringSize)
 
char * FileIO::readBitSwappedStringIntoCharArray (std::ifstream &fin, int stringSize)
 
uint16_t FileIO::readLittleEndian16 (std::ifstream &fin)
 
uint32_t FileIO::readLittleEndian32 (std::ifstream &fin)
 
uint64_t FileIO::readLittleEndian64 (std::ifstream &fin)
 
uint8_t FileIO::readLittleEndian8 (std::ifstream &fin)
 
uint16_t FileIO::readNative16 (std::ifstream &fin)
 
uint32_t FileIO::readNative32 (std::ifstream &fin)
 
uint64_t FileIO::readNative64 (std::ifstream &fin)
 
uint8_t FileIO::readNative8 (std::ifstream &fin)
 
std::string FileIO::readString (std::ifstream &fin, int stringSize)
 
std::string FileIO::readString (std::ifstream &fin, int stringSize, Endianness e)
 
char * FileIO::readStringIntoCharArray (std::ifstream &fin, int stringSize)
 
char * FileIO::readStringIntoCharArray (std::ifstream &fin, int stringSize, Endianness e)
 
void FileIO::write16 (std::ofstream &fout, uint16_t writeValue, Endianness e=Endianness::NATIVE)
 
void FileIO::write32 (std::ofstream &fout, uint32_t writeValue, Endianness e=Endianness::NATIVE)
 
void FileIO::write64 (std::ofstream &fout, uint64_t writeValue, Endianness e=Endianness::NATIVE)
 
void FileIO::write8 (std::ofstream &fout, uint8_t writeValue, Endianness e=Endianness::NATIVE)
 
void FileIO::writeBigEndian16 (std::ofstream &fout, uint16_t writeValue)
 
void FileIO::writeBigEndian32 (std::ofstream &fout, uint32_t writeValue)
 
void FileIO::writeBigEndian64 (std::ofstream &fout, uint64_t writeValue)
 
void FileIO::writeBigEndian8 (std::ofstream &fout, uint8_t writeValue)
 
void FileIO::writeBitSwappedBigEndian16 (std::ofstream &fout, uint16_t writeValue)
 
void FileIO::writeBitSwappedBigEndian32 (std::ofstream &fout, uint32_t writeValue)
 
void FileIO::writeBitSwappedBigEndian64 (std::ofstream &fout, uint64_t writeValue)
 
void FileIO::writeBitSwappedBigEndian8 (std::ofstream &fout, uint8_t writeValue)
 
void FileIO::writeBitSwappedCharArray (std::ofstream &fout, char *writeCharArray, size_t outputSize=0)
 
void FileIO::writeBitSwappedLittleEndian16 (std::ofstream &fout, uint16_t writeValue)
 
void FileIO::writeBitSwappedLittleEndian32 (std::ofstream &fout, uint32_t writeValue)
 
void FileIO::writeBitSwappedLittleEndian64 (std::ofstream &fout, uint64_t writeValue)
 
void FileIO::writeBitSwappedLittleEndian8 (std::ofstream &fout, uint8_t writeValue)
 
void FileIO::writeBitSwappedString (std::ofstream &fout, std::string writeString, size_t outputSize=0)
 
void FileIO::writeCharArray (std::ofstream &fout, char *writeCharArray, Endianness e)
 
void FileIO::writeCharArray (std::ofstream &fout, char *writeCharArray, size_t outputSize, Endianness e)
 
void FileIO::writeCharArray (std::ofstream &fout, char *writeCharArray, size_t outputSize=0)
 
void FileIO::writeLittleEndian16 (std::ofstream &fout, uint16_t writeValue)
 
void FileIO::writeLittleEndian32 (std::ofstream &fout, uint32_t writeValue)
 
void FileIO::writeLittleEndian64 (std::ofstream &fout, uint64_t writeValue)
 
void FileIO::writeLittleEndian8 (std::ofstream &fout, uint8_t writeValue)
 
void FileIO::writeNative16 (std::ofstream &fout, uint16_t writeValue)
 
void FileIO::writeNative32 (std::ofstream &fout, uint32_t writeValue)
 
void FileIO::writeNative64 (std::ofstream &fout, uint64_t writeValue)
 
void FileIO::writeNative8 (std::ofstream &fout, uint8_t writeValue)
 
void FileIO::writeString (std::ofstream &fout, std::string writeString, Endianness e)
 
void FileIO::writeString (std::ofstream &fout, std::string writeString, size_t outputSize, Endianness e)
 
void FileIO::writeString (std::ofstream &fout, std::string writeString, size_t outputSize=0)