FastLED 3.9.3
Loading...
Searching...
No Matches
FileBuffer Class Reference

Detailed Description

Definition at line 16 of file filebuffer.h.

+ Inheritance diagram for FileBuffer:

Public Member Functions

 FileBuffer (FileHandleRef file)
 
void rewindToStart ()
 
bool available () const
 
int32_t BytesLeft () const
 
int32_t FileSize () const
 
int16_t read ()
 
size_t read (uint8_t *dst, size_t n)
 
size_t read (CRGB *dst, size_t n)
 
- Public Member Functions inherited from Referent
virtual int ref_count () const
 

Additional Inherited Members

- Protected Member Functions inherited from Referent
 Referent (const Referent &)
 
Referentoperator= (const Referent &)
 
 Referent (Referent &&)
 
Referentoperator= (Referent &&)
 
virtual void ref ()
 
virtual void unref ()
 
virtual void destroy ()
 

Constructor & Destructor Documentation

◆ FileBuffer()

FileBuffer::FileBuffer ( FileHandleRef file)

Definition at line 9 of file filebuffer.cpp.

◆ ~FileBuffer()

FileBuffer::~FileBuffer ( )
virtual

Definition at line 14 of file filebuffer.cpp.

Member Function Documentation

◆ available()

bool FileBuffer::available ( ) const

Definition at line 22 of file filebuffer.cpp.

◆ BytesLeft()

int32_t FileBuffer::BytesLeft ( ) const

Definition at line 34 of file filebuffer.cpp.

◆ FileSize()

int32_t FileBuffer::FileSize ( ) const

Definition at line 43 of file filebuffer.cpp.

◆ read() [1/3]

int16_t FileBuffer::read ( )

Definition at line 50 of file filebuffer.cpp.

◆ read() [2/3]

size_t FileBuffer::read ( CRGB * dst,
size_t n )
inline

Definition at line 28 of file filebuffer.h.

◆ read() [3/3]

size_t FileBuffer::read ( uint8_t * dst,
size_t n )

Definition at line 60 of file filebuffer.cpp.

◆ rewindToStart()

void FileBuffer::rewindToStart ( )

Definition at line 17 of file filebuffer.cpp.


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