Lines Matching +defs:position +defs:bytes
28 void OpenFile::set_path(OwningPtr<char> &&path, std::size_t bytes) {
30 pathLength_ = bytes;
64 Position position, IoErrorHandler &handler) {
134 if (fd_ >= 0 && position == Position::Append && !RawSeekToEnd()) {
155 openPosition_ = position; // for INQUIRE(POSITION=)
221 std::size_t bytes, IoErrorHandler &handler) {
222 if (bytes == 0) {
230 while (put < bytes) {
231 auto chunk{::write(fd_, buffer + put, bytes - put)};
271 FileOffset at, char *buffer, std::size_t bytes, IoErrorHandler &handler) {
274 for (std::size_t got{0}; got < bytes;) {
276 auto chunk{::pread(fd_, buffer + got, bytes - got, at)};
278 auto chunk{Seek(at, handler) ? ::read(fd_, buffer + got, bytes - got) : -1};
300 std::size_t bytes, IoErrorHandler &handler) {
303 for (std::size_t put{0}; put < bytes;) {
305 auto chunk{::pwrite(fd_, buffer + put, bytes - put, at)};
308 Seek(at, handler) ? ::write(fd_, buffer + put, bytes - put) : -1};