Enums


Public Member Functions

  • ~IoStreamFile ()
  • size_t
    readDataAvailable (void *dest, size_t maxSize)
  • off_t
    size () const
  • bool
    isEof () const
  • FILE *
    getFILE ()
  • void
    read (T *t)
  • void
    read (fs::path *p)
  • void
    readEndian (T *t, uint8_t endian)
  • void
    readBig (T *t)
  • void
    readLittle (T *t)
  • void
    readFixedString (char *t, size_t maxSize, bool nullTerminate)
  • void
    readFixedString (std::string *t, size_t size)
  • std::string
    readLine ()
  • void
    readData (void *dest, size_t size)
  • void
    write (T t)
  • void
    write (const Buffer &buffer)
  • void
    writeEndian (T t, uint8_t endian)
  • void
    writeBig (T t)
  • void
    writeLittle (T t)
  • void
    writeData (const void *src, size_t size)

Static Public Member Functions


Protected Member Functions

  • IoStreamFile (FILE *aFile, bool aOwnsFile=true, int32_t aDefaultBufferSize=2048)
  • void
    IORead (void *t, size_t size)
  • size_t
    readDataImpl (void *dest, size_t maxSize)
  • void
    IOWrite (const void *t, size_t size)

Protected Attributes

  • FILE *
    mFile
  • bool
    mOwnsFile
  • int32_t
    mBufferSize
  • int32_t
    mDefaultBufferSize
  • std::shared_ptr< uint8_t >
    mBuffer
  • off_t
    mBufferOffset
  • off_t
    mBufferFileOffset
  • off_t
    mSize
  • bool
    mSizeCached
  • fs::path
    mFileName
  • bool
    mDeleteOnDestroy
  • const int
    MINIMUM_BUFFER_SIZE