[TAlterBitmap] [Index] [TBinaryFile]

Class TBinaryFile


File: <toad/io/binfile.hh>

This class might help you to read and write binary data from and to C++ iostreams.
After SetEndian(TBinaryFile::BIG) it's even possible to exchange data with Java. See java.io.DataOutputStream and java.io.DataInputStream in the Java reference for more information.

Attention!

Super Classes

Attributes

protected EEndian _endian
protected iostream *_io

Methods

CompareString
public bool CompareString(const char*, int len)
Eof
public bool Eof()
Flush
public void Flush()
Read
public void Read(signed char* buffer, size_t count)
public void Read(unsigned char* buffer, size_t count)
ReadByte
public void ReadByte(unsigned char *v)
public void ReadByte(unsigned int *v)
public void ReadByte(int *v)
public unsigned int ReadByte()
ReadChar
public void ReadChar(char *v)
ReadDWord
public void ReadDWord(unsigned long* v)
public ulong ReadDWord()
ReadDouble
public double ReadDouble()
ReadFloat
public float ReadFloat()
ReadInt
public int ReadInt()
ReadString
public void ReadString(char*, int len)
public void ReadString(unsigned char *buf, int len)
public void ReadString(string*, int len)
public string ReadString(int len)
ReadWord
public void ReadWord(unsigned int *v)
public unsigned int ReadWord()
SeekRead
public void SeekRead(ulong p)
SeekWrite
public void SeekWrite(ulong p)
SetEndian
public void SetEndian(EEndian e)
TBinaryFile
public TBinaryFile(iostream*)
public ~TBinaryFile()
TellRead
public ulong TellRead()
TellWrite
public ulong TellWrite()
Unget
public void Unget()
Write
public void Write(const signed char* buffer, size_t count)
public void Write(const unsigned char* buffer, size_t count)
public void Write(signed char* buffer, size_t count)
public void Write(unsigned char* buffer, size_t count)
WriteByte
public void WriteByte(unsigned char)
WriteChar
public void WriteChar(signed char)
public void WriteChar(unsigned char)
WriteDWord
public void WriteDWord(unsigned long)
WriteDouble
public void WriteDouble(double)
WriteFloat
public void WriteFloat(float)
WriteInt
public void WriteInt(int)
WriteString
public void WriteString(const char*, unsigned len)
public void WriteString(const char*)
public void WriteString(const string&)
WriteWord
public void WriteWord(unsigned int)

This page was generated with Stupid -- Another stupid C++ to HTML generator
Written 1998,99 by The Wizards of Zilog
Copyright © 1998,99 by the TOAD Project