Implements FileReader.
FileReader impl | Implements FileReader. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file FileReader. |
C-kern/ | Implementation file FileReader impl. |
filereader_t | |
types | |
filereader_mmfile_t | Names type filereader_t.mmfile. |
static configuration | |
lifetime | |
initfile_filereader | Opens file for reading. |
query | |
sizebuffer_filereader | TODO: 1. |
read | |
test |
This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
© 2013 Jörg Seebohn
Header file FileReader.
Implementation file FileReader impl.
types | |
filereader_mmfile_t | Names type filereader_t.mmfile. |
static configuration | |
lifetime | |
initfile_filereader | Opens file for reading. |
query | |
sizebuffer_filereader | TODO: 1. |
read | |
test |
typedef typeof( ((filereader_t*)0)->mmfile[0] ) filereader_mmfile_t
Names type filereader_t.mmfile.
Names type filereader_t.mmfile.
typedef typeof( ((filereader_t*)0)->mmfile[0] ) filereader_mmfile_t
The buffered input of the file.
struct { uint8_t* addr ; size_t size ; } mmfile[2]
Opens file for reading.
static int initfile_filereader( /*out*/file_t * fd, /*out*/off_t * filesize, const char * filepath, const struct directory_t * relative_to/*0 = > current working dir*/ )
TODO: 1.
size_t sizebuffer_filereader( void )