77{
79
80
81
83 {
84 return lowio_position;
85 }
86
88
89
90
91
92
93
95 if (base_buffer_position !=
_startpos(fh))
96 {
97 return -1;
98 }
99
103 return -1;
104
105
106
108 {
109 return -1;
110 }
111
112
113 if (current_buffer_position >
static_cast<__int64>(bytes_read))
114 {
115 return -1;
116 }
117
118
119
120 char const* const raw_first = raw_buffer;
121#pragma warning(disable:__WARNING_UNUSED_POINTER_ASSIGNMENT)
122 char const* const raw_last = raw_buffer + bytes_read;
123
124 char const* raw_it = raw_first;
125 for (
__int64 i = 0;
i != current_buffer_position && raw_it < raw_last; ++
i, ++raw_it)
126 {
128 {
129 if (raw_it < raw_last - 1 && *(raw_it + 1) ==
LF)
130 ++raw_it;
131 }
132 else
133 {
135 }
136 }
137
138 return base_buffer_position + (raw_it - raw_first);
139}
__inline char _utf8_no_of_trailbytes(const unsigned char c)
#define ReadFile(a, b, c, d, e)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i