Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 495 for reclen (0.11 sec)

  1. src/os/dirent_js.go

    	return 1, true
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Reclen), unsafe.Sizeof(syscall.Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	reclen, ok := direntReclen(buf)
    	if !ok {
    		return 0, false
    	}
    	return reclen - uint64(unsafe.Offsetof(syscall.Dirent{}.Name)), true
    }
    
    func direntType(buf []byte) FileMode {
    	return ^FileMode(0) // unknown
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 678 bytes
    - Viewed (0)
  2. src/os/dirent_aix.go

    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Reclen), unsafe.Sizeof(syscall.Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	reclen, ok := direntReclen(buf)
    	if !ok {
    		return 0, false
    	}
    	return reclen - uint64(unsafe.Offsetof(syscall.Dirent{}.Name)), true
    }
    
    func direntType(buf []byte) FileMode {
    	return ^FileMode(0) // unknown
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 759 bytes
    - Viewed (0)
  3. src/os/dirent_solaris.go

    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Reclen), unsafe.Sizeof(syscall.Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	reclen, ok := direntReclen(buf)
    	if !ok {
    		return 0, false
    	}
    	return reclen - uint64(unsafe.Offsetof(syscall.Dirent{}.Name)), true
    }
    
    func direntType(buf []byte) FileMode {
    	return ^FileMode(0) // unknown
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 759 bytes
    - Viewed (0)
  4. src/os/dirent_linux.go

    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Reclen), unsafe.Sizeof(syscall.Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	reclen, ok := direntReclen(buf)
    	if !ok {
    		return 0, false
    	}
    	return reclen - uint64(unsafe.Offsetof(syscall.Dirent{}.Name)), true
    }
    
    func direntType(buf []byte) FileMode {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  5. src/syscall/dirent.go

    	origlen := len(buf)
    	count = 0
    	for max != 0 && len(buf) > 0 {
    		reclen, ok := direntReclen(buf)
    		if !ok || reclen > uint64(len(buf)) {
    			return origlen, count, names
    		}
    		rec := buf[:reclen]
    		buf = buf[reclen:]
    		ino, ok := direntIno(rec)
    		if !ok {
    			break
    		}
    		// See src/os/dir_unix.go for the reason why this condition is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/dirent.go

    	origlen := len(buf)
    	count = 0
    	for max != 0 && len(buf) > 0 {
    		reclen, ok := direntReclen(buf)
    		if !ok || reclen > uint64(len(buf)) {
    			return origlen, count, names
    		}
    		rec := buf[:reclen]
    		buf = buf[reclen:]
    		ino, ok := direntIno(rec)
    		if !ok {
    			break
    		}
    		if ino == 0 { // File absent in directory.
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. src/syscall/syscall_darwin.go

    		e := readdir_r(d, &entry, &entryp)
    		if e != 0 {
    			return n, errnoErr(e)
    		}
    		if entryp == nil {
    			break
    		}
    		if skip > 0 {
    			skip--
    			cnt++
    			continue
    		}
    		reclen := int(entry.Reclen)
    		if reclen > len(buf) {
    			// Not enough room. Return for now.
    			// The counter will let us know where we should start up again.
    			// Note: this strategy for suspending in the middle and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. src/os/dirent_openbsd.go

    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Fileno), unsafe.Sizeof(syscall.Dirent{}.Fileno))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Reclen), unsafe.Sizeof(syscall.Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Namlen), unsafe.Sizeof(syscall.Dirent{}.Namlen))
    }
    
    func direntType(buf []byte) FileMode {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  9. src/os/dirent_freebsd.go

    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Fileno), unsafe.Sizeof(syscall.Dirent{}.Fileno))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Reclen), unsafe.Sizeof(syscall.Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Namlen), unsafe.Sizeof(syscall.Dirent{}.Namlen))
    }
    
    func direntType(buf []byte) FileMode {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  10. src/os/dir_unix.go

    				dirBufPool.Put(d.buf)
    				d.buf = nil
    				break // EOF
    			}
    		}
    
    		// Drain the buffer
    		buf := (*d.buf)[d.bufp:d.nbuf]
    		reclen, ok := direntReclen(buf)
    		if !ok || reclen > uint64(len(buf)) {
    			break
    		}
    		rec := buf[:reclen]
    		d.bufp += int(reclen)
    		ino, ok := direntIno(rec)
    		if !ok {
    			break
    		}
    		// When building to wasip1, the host runtime might be running on Windows
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top