Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,885 for Parses (0.27 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/bootstrap/DaemonGreeterTest.groovy

    import org.gradle.process.ExecResult
    import spock.lang.Specification
    
    class DaemonGreeterTest extends Specification {
    
        def registry = Mock(DocumentationRegistry)
        def args = ["foo", "bar"]
    
        def "parses the process output"() {
            given:
            def address = new MultiChoiceAddress(UUID.randomUUID(), 123, [])
    
            def outputStream = new ByteArrayOutputStream()
            def printStream = new PrintStream(outputStream)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. src/net/mac.go

    	for i, b := range a {
    		if i > 0 {
    			buf = append(buf, ':')
    		}
    		buf = append(buf, hexDigit[b>>4])
    		buf = append(buf, hexDigit[b&0xF])
    	}
    	return string(buf)
    }
    
    // ParseMAC parses s as an IEEE 802 MAC-48, EUI-48, EUI-64, or a 20-octet
    // IP over InfiniBand link-layer address using one of the following formats:
    //
    //	00:00:5e:00:53:01
    //	02:00:5e:10:00:00:00:01
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  3. src/cmd/internal/pgo/deserialize.go

    		// Empty file.
    		return false, nil
    	} else if err != nil {
    		return false, fmt.Errorf("error reading profile header: %w", err)
    	}
    
    	return string(hdr) == serializationHeader, nil
    }
    
    // FromSerialized parses a profile from serialization output of Profile.WriteTo.
    func FromSerialized(r io.Reader) (*Profile, error) {
    	d := emptyProfile()
    
    	scanner := bufio.NewScanner(r)
    	scanner.Split(bufio.ScanLines)
    
    	if !scanner.Scan() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. src/syscall/dirent.go

    	case 4:
    		return uint64(byteorder.LeUint32(b))
    	case 8:
    		return uint64(byteorder.LeUint64(b))
    	default:
    		panic("syscall: readInt with unsupported size")
    	}
    }
    
    // ParseDirent parses up to max directory entries in buf,
    // appending the names to names. It returns the number of
    // bytes consumed from buf, the number of entries added
    // to names, and the new names slice.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. internal/bucket/object/lock/lock.go

    		}
    	}
    
    	return r
    }
    
    // Maximum 4KiB size per object lock config.
    const maxObjectLockConfigSize = 1 << 12
    
    // ParseObjectLockConfig parses ObjectLockConfig from xml
    func ParseObjectLockConfig(reader io.Reader) (*Config, error) {
    	config := Config{}
    	if err := xml.NewDecoder(io.LimitReader(reader, maxObjectLockConfigSize)).Decode(&config); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/internal/language/language.go

    	// tag has variants or extensions.
    	str string
    }
    
    // Make is a convenience wrapper for Parse that omits the error.
    // In case of an error, a sensible default is returned.
    func Make(s string) Tag {
    	t, _ := Parse(s)
    	return t
    }
    
    // Raw returns the raw base language, script and region, without making an
    // attempt to infer their values.
    // TODO: consider removing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/syntax.go

    // current parser position, not the position of the pragma itself.
    // Blank specifies whether the line is blank before the pragma.
    type PragmaHandler func(pos Pos, blank bool, text string, current Pragma) Pragma
    
    // Parse parses a single Go source file from src and returns the corresponding
    // syntax tree. If there are errors, Parse will return the first error found,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/expiration.go

    )
    
    // ExpirationDays is a type alias to unmarshal Days in Expiration
    type ExpirationDays int
    
    // UnmarshalXML parses number of days from Expiration and validates if
    // greater than zero
    func (eDays *ExpirationDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error {
    	var numDays int
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Feb 21 20:28:34 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/net/route/address.go

    	}
    	_, a, err := parseKernelLinkAddr(syscall.AF_LINK, b[4:])
    	if err != nil {
    		return nil, err
    	}
    	a.(*LinkAddr).Index = int(nativeEndian.Uint16(b[2:4]))
    	return a, nil
    }
    
    // parseKernelLinkAddr parses b as a link-layer address in
    // conventional BSD kernel form.
    func parseKernelLinkAddr(_ int, b []byte) (int, Addr, error) {
    	// The encoding looks like the following:
    	// +----------------------------+
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  10. src/internal/trace/testtrace/expectation.go

    		return fmt.Errorf("unexpected error while reading the trace: want something matching %q, got %s", e.errorMatcher, err.Error())
    	}
    	return nil
    }
    
    // ParseExpectation parses the serialized form of an Expectation.
    func ParseExpectation(data []byte) (*Expectation, error) {
    	exp := new(Expectation)
    	s := bufio.NewScanner(bytes.NewReader(data))
    	if s.Scan() {
    		c := strings.SplitN(s.Text(), " ", 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top