- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for reclen (0.19 sec)
-
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) -
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) -
src/syscall/getdirentries_test.go
// we have cap(buf) < Sizeof(Dirent). So use an appropriate slice to copy from data. var dirent syscall.Dirent copy((*[unsafe.Sizeof(dirent)]byte)(unsafe.Pointer(&dirent))[:], data) data = data[dirent.Reclen:] name := make([]byte, dirent.Namlen) for i := 0; i < int(dirent.Namlen); i++ { name[i] = byte(dirent.Name[i]) } names2 = append(names2, string(name)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 8.6K bytes - Viewed (0) -
src/syscall/syscall_openbsd_libc.go
return syscall10X(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, 0) } //sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_read //sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_lseek //sys getcwd(buf []byte) (n int, err error) //sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) //sysnb fork() (pid int, err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 04 07:51:20 UTC 2024 - 3.7K bytes - Viewed (0) -
src/math/rand/v2/chacha8.go
func (c *ChaCha8) Read(p []byte) (n int, err error) { if c.readLen > 0 { n = copy(p, c.readBuf[len(c.readBuf)-c.readLen:]) c.readLen -= n p = p[n:] } for len(p) >= 8 { byteorder.LePutUint64(p, c.Uint64()) p = p[8:] n += 8 } if len(p) > 0 { byteorder.LePutUint64(c.readBuf[:], c.Uint64()) n += copy(p, c.readBuf[:]) c.readLen = 8 - len(p) } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 2.8K bytes - Viewed (0) -
src/net/resolverdialfunc_test.go
if len(packet) < 2 { return 0, fmt.Errorf("short write of %d bytes; want 2+", len(packet)) } reqLen := int(packet[0])<<8 | int(packet[1]) req := packet[2:] if len(req) != reqLen { return 0, fmt.Errorf("packet declared length %d doesn't match body length %d", reqLen, len(req)) } var parser dnsmessage.Parser h, err := parser.Start(req) if err != nil { // TODO: hook
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.3K bytes - Viewed (0) -
src/runtime/proflabel.go
// setProfLabel operations, not just the most recent one. This // is important because profBuf.read will observe different // labels set by different setProfLabel operations on // different goroutines, so it needs to synchronize with all // of them (this wouldn't be an issue if we could synchronize // on &getg().labels since we would synchronize with each // most-recent labels write separately.) //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 2.1K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/service/scopes/DefaultGradleUserHomeScopeServiceRegistry.java
import java.util.Map; import java.util.Optional; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; /** * Reuses the services for the most recent Gradle user home dir. Could instead cache several most recent and clean these up on memory pressure, however in practise there is only a single user home dir associated with a given build process. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:34:44 UTC 2024 - 5.9K bytes - Viewed (0) -
.github/workflows/stale-pr.yml
exempt-pr-labels: "from:contributor" stale-pr-label: stale stale-pr-message: > This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If you don't want the stale bot to close it, then set a milestone for it. days-before-pr-close: 14
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 02 09:13:16 UTC 2024 - 1.7K bytes - Viewed (0)