Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Namelen (0.1 sec)

  1. src/internal/poll/fd_wasip1.go

    const sizeOfDirent = 24
    
    func direntReclen(buf []byte) (uint64, bool) {
    	namelen, ok := direntNamlen(buf)
    	return sizeOfDirent + namelen, ok
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Namlen), unsafe.Sizeof(syscall.Dirent{}.Namlen))
    }
    
    func direntNext(buf []byte) (uint64, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:14:02 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go

    	Type    uint64
    	Bsize   uint64
    	Blocks  uint64
    	Bfree   uint64
    	Bavail  uint64
    	Files   uint32
    	Ffree   uint32
    	Fsid    uint64
    	Namelen uint64
    	Frsize  uint64
    	Flags   uint64
    	_       [4]uint64
    }
    
    type direntLE struct {
    	Reclen uint16
    	Namlen uint16
    	Ino    uint32
    	Extra  uintptr
    	Name   [256]byte
    }
    
    type Dirent struct {
    	Ino    uint64
    	Off    int64
    	Reclen uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. src/syscall/syscall_wasip1.go

    	// The length of the name of the directory entry.
    	Namlen uint32
    	// The type of the file referred to by this directory entry.
    	Type Filetype
    	// Name of the directory entry.
    	Name *byte
    }
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	namelen, ok := direntNamlen(buf)
    	return 24 + namelen, ok
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/crypto/sha1/sha1block_amd64.go

    		// We may add checks inside blockAVX2, but this will
    		// just turn it into a copy of blockAMD64,
    		// so call it directly, instead.
    		safeLen := len(p) - 128
    		if safeLen%128 != 0 {
    			safeLen -= 64
    		}
    		blockAVX2(dig, p[:safeLen])
    		blockAMD64(dig, p[safeLen:])
    	} else {
    		blockAMD64(dig, p)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 926 bytes
    - Viewed (0)
  5. src/syscall/dirent.go

    		if ino == 0 && runtime.GOOS != "wasip1" { // File absent in directory.
    			continue
    		}
    		const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
    		namlen, ok := direntNamlen(rec)
    		if !ok || namoff+namlen > uint64(len(rec)) {
    			break
    		}
    		name := rec[namoff : namoff+namlen]
    		for i, c := range name {
    			if c == 0 {
    				name = name[:i]
    				break
    			}
    		}
    		// Check for useless names before allocating a string.
    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/syscall/getdirentries_test.go

    			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))
    		}
    	}
    
    	names = append(names, ".", "..") // Getdirentries returns these also
    	slices.Sort(names)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. src/os/dir_unix.go

    		if ino == 0 && runtime.GOOS != "wasip1" {
    			continue
    		}
    		const namoff = uint64(unsafe.Offsetof(syscall.Dirent{}.Name))
    		namlen, ok := direntNamlen(rec)
    		if !ok || namoff+namlen > uint64(len(rec)) {
    			break
    		}
    		name := rec[namoff : namoff+namlen]
    		for i, c := range name {
    			if c == 0 {
    				name = name[:i]
    				break
    			}
    		}
    		// Check for useless names before allocating a string.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. pkg/config/analysis/analyzers/schema/validation_test.go

    		ctx := &fixtures.Context{
    			Resources: []*resource.Instance{
    				{
    					Message: m2,
    					Origin:  fakeOrigin{},
    				},
    			},
    		}
    		a.Analyze(ctx)
    		g.Expect(ctx.Reports).To(HaveLen(1))
    		g.Expect(ctx.Reports[0].Type).To(Equal(msg.SchemaValidationError))
    	})
    
    	t.Run("MultiError", func(t *testing.T) {
    		g := NewWithT(t)
    		ctx := &fixtures.Context{
    			Resources: []*resource.Instance{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. src/internal/xcoff/ar.go

    		}
    		member.Size = uint64(size)
    
    		// Read name
    		namlen, err := parseDecimalBytes(mhdr.Arnamlen[:])
    		if err != nil {
    			return nil, fmt.Errorf("error parsing name length in member header(%q); %v", mhdr, err)
    		}
    		name := make([]byte, namlen)
    		if err := binary.Read(sr, binary.BigEndian, name); err != nil {
    			return nil, err
    		}
    		member.Name = string(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:32:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/gateway/controller_test.go

    	controller := NewController(clientSet, store, AlwaysReady, nil, controller.Options{})
    
    	typ := config.GroupVersionKind{Kind: "wrong-kind"}
    	c := controller.List(typ, "ns1")
    	g.Expect(c).To(HaveLen(0))
    }
    
    func TestListGatewayResourceType(t *testing.T) {
    	g := NewWithT(t)
    
    	clientSet := kube.NewFakeClient()
    	clientSet.RunAndWait(test.NewStop(t))
    	store := memory.NewController(memory.Make(collections.All))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 16:47:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top