- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for direntReclen (0.3 sec)
-
src/os/dirent_js.go
import ( "syscall" "unsafe" ) func direntIno(buf []byte) (uint64, bool) { 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 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 00:59:20 UTC 2020 - 678 bytes - Viewed (0) -
src/os/dirent_aix.go
return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Ino), unsafe.Sizeof(syscall.Dirent{}.Ino)) } 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 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 00:59:20 UTC 2020 - 759 bytes - Viewed (0) -
src/os/dirent_solaris.go
return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Ino), unsafe.Sizeof(syscall.Dirent{}.Ino)) } 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 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 00:59:20 UTC 2020 - 759 bytes - Viewed (0) -
src/os/dirent_linux.go
return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Ino), unsafe.Sizeof(syscall.Dirent{}.Ino)) } 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 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 00:59:20 UTC 2020 - 1.2K bytes - Viewed (0) -
src/os/dirent_openbsd.go
package os import ( "syscall" "unsafe" ) func direntIno(buf []byte) (uint64, bool) { 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) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 00:59:20 UTC 2020 - 1.2K bytes - Viewed (0) -
src/internal/poll/fd_wasip1.go
if !ok { break } size, ok := direntReclen(b) if !ok { break } if size > uint64(len(b)) { break } fd.Dircookie = syscall.Dircookie(next) b = b[size:] } // Trim a potentially incomplete trailing entry; this is necessary because // the code in src/os/dir_unix.go does not deal well with partial values in // calls to direntReclen, etc... and ends up causing an early EOF before all
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:14:02 UTC 2024 - 6.7K bytes - Viewed (0) -
src/os/dirent_freebsd.go
package os import ( "syscall" "unsafe" ) func direntIno(buf []byte) (uint64, bool) { 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) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 00:59:20 UTC 2020 - 1.2K bytes - Viewed (0) -
src/os/dirent_netbsd.go
package os import ( "syscall" "unsafe" ) func direntIno(buf []byte) (uint64, bool) { 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) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 00:59:20 UTC 2020 - 1.2K bytes - Viewed (0) -
src/os/dirent_dragonfly.go
package os import ( "syscall" "unsafe" ) func direntIno(buf []byte) (uint64, bool) { return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Fileno), unsafe.Sizeof(syscall.Dirent{}.Fileno)) } func direntReclen(buf []byte) (uint64, bool) { namlen, ok := direntNamlen(buf) if !ok { return 0, false } return (16 + namlen + 1 + 7) &^ 7, true } func direntNamlen(buf []byte) (uint64, bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 00:59:20 UTC 2020 - 1.3K bytes - Viewed (0) -
src/os/dirent_wasip1.go
const sizeOfDirent = 24 func direntIno(buf []byte) (uint64, bool) { return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Ino), unsafe.Sizeof(syscall.Dirent{}.Ino)) } func direntReclen(buf []byte) (uint64, bool) { namelen, ok := direntNamlen(buf) return sizeOfDirent + namelen, ok } func direntNamlen(buf []byte) (uint64, bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 1.4K bytes - Viewed (0)