1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef BUFFIO_H # define BUFFIO_H #include <Object.h> #include <sys/types.h> @interface BuffIO: Object { char *file; char *curOff; off_t fileLen; char EOL; } -init: (const char *)fileName; -free; -(char *)getCurOff; -(off_t)getLength; -setEOL: (char)delim; @end #endif