Public Member Functions | Data Fields

FileImpl Class Reference

#include <InkAPIInternal.h>

Public Member Functions

 FileImpl ()
 ~FileImpl ()
int fopen (const char *filename, const char *mode)
void fclose ()
int fread (void *buf, int length)
int fwrite (const void *buf, int length)
int fflush ()
char * fgets (char *buf, int length)

Data Fields

int m_fd
int m_mode
char * m_buf
int m_bufsize
int m_bufpos

Detailed Description

Definition at line 82 of file InkAPIInternal.h.


Constructor & Destructor Documentation

FileImpl::FileImpl (  ) 

Definition at line 700 of file InkAPI.cc.

FileImpl::~FileImpl (  ) 

Definition at line 704 of file InkAPI.cc.

References fclose().


Member Function Documentation

void FileImpl::fclose (  ) 

Definition at line 743 of file InkAPI.cc.

References ats_free(), fflush(), m_buf, m_bufpos, m_bufsize, m_fd, and m_mode.

Referenced by TSfclose(), and ~FileImpl().

int FileImpl::fflush (  ) 

Definition at line 855 of file InkAPI.cc.

References m_buf, m_bufpos, m_fd, and m_mode.

Referenced by fclose(), fwrite(), and TSfflush().

char * FileImpl::fgets ( char *  buf,
int  length 
)

Definition at line 889 of file InkAPI.cc.

References fread(), m_buf, and m_bufpos.

Referenced by TSfgets().

int FileImpl::fopen ( const char *  filename,
const char *  mode 
)

Definition at line 710 of file InkAPI.cc.

References _O_ATTRIB_NORMAL, m_fd, and m_mode.

Referenced by TSfopen().

int FileImpl::fread ( void *  buf,
int  length 
)

Definition at line 762 of file InkAPI.cc.

References ats_malloc(), ats_realloc(), m_buf, m_bufpos, m_bufsize, m_fd, m_mode, and memcpy.

Referenced by fgets(), and TSfread().

int FileImpl::fwrite ( const void *  buf,
int  length 
)

Definition at line 815 of file InkAPI.cc.

References ats_malloc(), fflush(), m_buf, m_bufpos, m_bufsize, m_fd, m_mode, and memcpy.

Referenced by TSfwrite().


Field Documentation

Definition at line 105 of file InkAPIInternal.h.

Referenced by fclose(), fflush(), fgets(), fread(), and fwrite().

Definition at line 107 of file InkAPIInternal.h.

Referenced by fclose(), fflush(), fgets(), fread(), and fwrite().

Definition at line 106 of file InkAPIInternal.h.

Referenced by fclose(), fread(), and fwrite().

Definition at line 103 of file InkAPIInternal.h.

Referenced by fclose(), fflush(), fopen(), fread(), and fwrite().

Definition at line 104 of file InkAPIInternal.h.

Referenced by fclose(), fflush(), fopen(), fread(), and fwrite().


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