Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SendDir (0.2 sec)

  1. src/go/internal/gccgoimporter/testdata/v1reflect.gox

    func New (typ <type 26>) <type 1>;
    func NewAt (typ <type 26>, p <type 7>) <type 1>;
    const Ptr <type 28> = 22 ;
    func PtrTo (t <type 26>) <type 26>;
    const RecvDir <type 29> = 1 ;
    const SendDir <type 29> = 2 ;
    const Slice <type 28> = 23 ;
    type <type 60 "SliceHeader" <type 61 struct { Data <type -13>; Len <type -11>; Cap <type -11>; }>>;
    const String <type 28> = 24 ;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  2. src/internal/abi/type.go

    	}
    	return 0
    }
    
    func (t *Type) Common() *Type {
    	return t
    }
    
    type ChanDir int
    
    const (
    	RecvDir    ChanDir = 1 << iota         // <-chan
    	SendDir                                // chan<-
    	BothDir            = RecvDir | SendDir // chan
    	InvalidDir ChanDir = 0
    )
    
    // ChanType represents a channel type
    type ChanType struct {
    	Type
    	Elem *Type
    	Dir  ChanDir
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  3. src/runtime/select.go

    // This must match ../reflect/value.go:/runtimeSelect
    type runtimeSelect struct {
    	dir selectDir
    	typ unsafe.Pointer // channel type (not used here)
    	ch  *hchan         // channel
    	val unsafe.Pointer // ptr to data (SendDir) or ptr to receive buffer (RecvDir)
    }
    
    // These values must match ../reflect/value.go:/SelectDir.
    type selectDir int
    
    const (
    	_             selectDir = iota
    	selectSend              // case Chan <- Send
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 13 21:36:04 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. src/text/template/exec.go

    		}
    		om := fmtsort.Sort(val)
    		for _, m := range om {
    			oneIteration(m.Key, m.Value)
    		}
    		return
    	case reflect.Chan:
    		if val.IsNil() {
    			break
    		}
    		if val.Type().ChanDir() == reflect.SendDir {
    			s.errorf("range over send-only channel %v", val)
    			break
    		}
    		i := 0
    		for ; ; i++ {
    			elem, ok := val.Recv()
    			if !ok {
    				break
    			}
    			oneIteration(reflect.ValueOf(i), elem)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. pkg/volume/util/subpath/subpath_linux.go

    	return nil
    }
    
    // removeEmptyDirs works backwards from endDir to baseDir and removes each directory
    // if it is empty.  It stops once it encounters a directory that has content
    func removeEmptyDirs(baseDir, endDir string) error {
    	if !mount.PathWithinBase(endDir, baseDir) {
    		return fmt.Errorf("endDir %q is not within baseDir %q", endDir, baseDir)
    	}
    
    	for curDir := endDir; curDir != baseDir; curDir = filepath.Dir(curDir) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 12 14:09:11 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  6. pkg/volume/util/subpath/subpath_linux_test.go

    		baseDir     string
    		endDir      string
    		expectError bool
    	}{
    		{
    			name: "all-empty",
    			prepare: func(base string) error {
    				return os.MkdirAll(filepath.Join(base, "a/b/c"), defaultPerm)
    			},
    			validate: func(base string) error {
    				return validateDirEmpty(filepath.Join(base, "a"))
    			},
    			baseDir:     "a",
    			endDir:      "a/b/c",
    			expectError: false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 10 16:52:55 UTC 2021
    - 37.3K bytes
    - Viewed (0)
Back to top