CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoTypeCore::BinaryInputFile Class Reference

#include <cartotype_stream.h>

Public Member Functions

Result Open (const char *aFileName)
 
void OpenStandardInput ()
 
Result Seek (int64_t aOffset, int aOrigin)
 
int64_t Tell () const
 
size_t Read (uint8_t *aBuffer, size_t aBufferSize)
 
 BinaryInputFile (const BinaryInputFile &)=delete
 
 BinaryInputFile (BinaryInputFile &&)=delete
 
void operator= (const BinaryInputFile &)=delete
 
void operator= (BinaryInputFile &&)=delete
 

Detailed Description

A file input class for reading binary data from file which may be greater than 4Gb in size.

Member Function Documentation

◆ Open()

Result CartoTypeCore::BinaryInputFile::Open ( const char *  aFileName)

Opens a file.

◆ OpenStandardInput()

void CartoTypeCore::BinaryInputFile::OpenStandardInput ( )
inline

Opens standard input.

◆ Read()

size_t CartoTypeCore::BinaryInputFile::Read ( uint8_t *  aBuffer,
size_t  aBufferSize 
)
inline

Reads up to aBufferSize bytes into aBuffer and returns the number of bytes actually read.

◆ Seek()

Result CartoTypeCore::BinaryInputFile::Seek ( int64_t  aOffset,
int  aOrigin 
)
inline

Seeks to a byte position aOffset in the file; aOrigin is the same as for fseek().

◆ Tell()

int64_t CartoTypeCore::BinaryInputFile::Tell ( ) const
inline

Returns the current byte position in the file.


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