Lines Matching refs:sf
71 StringFile *sf = static_cast<StringFile *>(f); in str_read() local
72 if (sf->pos >= sf->eof_marker) in str_read()
76 reinterpret_cast<char *>(data)[i] = sf->str[sf->pos + i]; in str_read()
77 sf->pos += i; in str_read()
83 StringFile *sf = static_cast<StringFile *>(f); in str_write() local
84 if (sf->write_append) in str_write()
85 sf->pos = sf->eof_marker; in str_write()
86 if (sf->pos >= SIZE) in str_write()
89 for (i = 0; i < len && sf->pos < SIZE; ++i, ++sf->pos) in str_write()
90 sf->str[sf->pos] = reinterpret_cast<const char *>(data)[i]; in str_write()
92 if (sf->pos > sf->eof_marker) in str_write()
93 sf->eof_marker = sf->pos; in str_write()
98 StringFile *sf = static_cast<StringFile *>(f); in str_seek() local
100 sf->pos = offset; in str_seek()
102 sf->pos += offset; in str_seek()
104 sf->pos = SIZE + offset; in str_seek()