Go to the documentation of this file.
31 #define BINIO_ENABLE_STRING 1
37 #define BINIO_ENABLE_IOSTREAM 1
43 #define BINIO_ISO_STDLIB 1
53 #define BINIO_WITH_MATH 1
59 # pragma warning(disable: 4250)
62 #if BINIO_ENABLE_STRING
98 virtual streampos
pos() = 0;
114 Float ldexp(
Float x,
signed int exp) {
return x * pow(2, exp); }
129 unsigned long readString(
char *str,
unsigned long amount);
130 unsigned long readString(
char *str,
unsigned long maxlen,
const char delim);
131 #if BINIO_ENABLE_STRING
132 std::string
readString(
const char delim =
'\0');
139 void ignore(
unsigned long amount = 1);
143 virtual void getRaw(
char *c, streamsize n) = 0;
158 unsigned long writeString(
const char *str,
unsigned long amount = 0);
159 #if BINIO_ENABLE_STRING
165 virtual void putRaw(
const char *c, streamsize n) = 0;
Float peekFloat(FType ft)
unsigned long readString(char *str, unsigned long amount)
void float2ieee_double(Float f, Byte *data)
void writeFloat(Float f, FType ft)
void writeInt(Int val, unsigned int size)
void ignore(unsigned long amount=1)
virtual void seek(long, Offset=Set)=0
virtual void putByte(Byte)=0
Int peekInt(unsigned int size)
Float ieee_double2float(Byte *data)
virtual streampos pos()=0
static Flags detect_system_flags()
virtual void putRaw(const char *c, streamsize n)=0
static const Flags system_flags
Float ieee_single2float(Byte *data)
virtual void getRaw(char *c, streamsize n)=0
void setFlag(Flag f, bool set=true)
unsigned long writeString(const char *str, unsigned long amount=0)
Int readInt(unsigned int size)
Float readFloat(FType ft)
The global header file for ARTS.
void float2ieee_single(Float f, Byte *data)