Library of Assembled Shared Sources
lass::io::BinaryIFile Class Reference

Input Stream for binary files. More...

#include <binary_i_file.h>

Inheritance diagram for lass::io::BinaryIFile:
Collaboration diagram for lass::io::BinaryIFile:

Public Member Functions

 BinaryIFile ()
 Construct an "empty" closed stream.
 
 BinaryIFile (const char *path)
 Construct stream by filename and open it.
 
 BinaryIFile (const std::string &path)
 Construct stream by filename and open it.
 
 ~BinaryIFile ()
 Close stream on destruction.
 
size_t read (void *out, size_t numberOfBytes)
 read a number of bytes from stream to buffer
 

Detailed Description

Input Stream for binary files.

Definition at line 70 of file binary_i_file.h.

Constructor & Destructor Documentation

◆ BinaryIFile()

lass::io::BinaryIFile::BinaryIFile ( )

Construct an "empty" closed stream.

Definition at line 60 of file binary_i_file.cpp.

Member Function Documentation

◆ read()

size_t lass::io::BinaryIStream::read ( void * output,
size_t numBytes )
inherited

read a number of bytes from stream to buffer

Parameters
iBytespointer to buffer. Must be able to contain at least numBytes bytes.
numBytesnumber of bytes to be read

Definition at line 261 of file binary_i_stream.cpp.

References read().

Referenced by read().


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