Lines Matching refs:buffer_len
132 bool File::Read(void* buffer, size_t buffer_len, size_t offset) {
134 if (buffer_len > ULONG_MAX || offset > LONG_MAX)
143 DWORD size = static_cast<DWORD>(buffer_len);
149 bool File::Write(const void* buffer, size_t buffer_len, size_t offset) {
151 if (buffer_len > ULONG_MAX || offset > ULONG_MAX)
160 DWORD size = static_cast<DWORD>(buffer_len);
169 bool File::Read(void* buffer, size_t buffer_len, size_t offset,
175 return Read(buffer, buffer_len, offset);
178 if (buffer_len > ULONG_MAX || offset > ULONG_MAX)
182 DWORD size = static_cast<DWORD>(buffer_len);
201 bool File::Write(const void* buffer, size_t buffer_len, size_t offset,
207 return Write(buffer, buffer_len, offset);
210 return AsyncWrite(buffer, buffer_len, offset, true, callback, completed);
213 bool File::PostWrite(const void* buffer, size_t buffer_len, size_t offset) {
215 return AsyncWrite(buffer, buffer_len, offset, false, NULL, NULL);
218 bool File::AsyncWrite(const void* buffer, size_t buffer_len, size_t offset,
221 if (buffer_len > ULONG_MAX || offset > ULONG_MAX)
233 DWORD size = static_cast<DWORD>(buffer_len);