Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 123 for nul (0.06 sec)

  1. src/syscall/types_windows.go

    	dst.FileSizeHigh = src.FileSizeHigh
    	dst.FileSizeLow = src.FileSizeLow
    	dst.Reserved0 = src.Reserved0
    	dst.Reserved1 = src.Reserved1
    
    	// The src is 1 element bigger than dst, but it must be NUL.
    	copy(dst.FileName[:], src.FileName[:])
    	copy(dst.AlternateFileName[:], src.AlternateFileName[:])
    }
    
    type ByHandleFileInformation struct {
    	FileAttributes     uint32
    	CreationTime       Filetime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. src/encoding/json/decode_test.go

    	{CaseName: Name(""), in: `{"B": "null"}`, ptr: new(B), out: B{false}},
    	{CaseName: Name(""), in: `{"B": "nul"}`, ptr: new(B), err: errors.New(`json: invalid use of ,string struct tag, trying to unmarshal "nul" into bool`)},
    	{CaseName: Name(""), in: `{"B": [2, 3]}`, ptr: new(B), err: errors.New(`json: invalid use of ,string struct tag, trying to unmarshal unquoted value into bool`)},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/rsc.io/markdown/parse.go

    	var ps parseState
    	ps.Parser = p
    	if strings.Contains(text, "\x00") {
    		text = strings.ReplaceAll(text, "\x00", "\uFFFD")
    		ps.corner = true // goldmark does not replace NUL
    	}
    
    	ps.lineDepth = -1
    	ps.addBlock(&rootBuilder{})
    	for text != "" {
    		var ln string
    		i := strings.Index(text, "\n")
    		j := strings.Index(text, "\r")
    		var nl byte
    		switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. src/time/zoneinfo_read.go

    	}
    	return p[0], true
    }
    
    // rest returns the rest of the data in the buffer.
    func (d *dataIO) rest() []byte {
    	r := d.p
    	d.p = nil
    	return r
    }
    
    // Make a string by stopping at the first NUL
    func byteString(p []byte) string {
    	if i := bytealg.IndexByte(p, 0); i != -1 {
    		p = p[:i]
    	}
    	return string(p)
    }
    
    var errBadData = errors.New("malformed time zone information")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. src/encoding/json/scanner.go

    func stateNu(s *scanner, c byte) int {
    	if c == 'l' {
    		s.step = stateNul
    		return scanContinue
    	}
    	return s.error(c, "in literal null (expecting 'l')")
    }
    
    // stateNul is the state after reading `nul`.
    func stateNul(s *scanner, c byte) int {
    	if c == 'l' {
    		s.step = stateEndValue
    		return scanContinue
    	}
    	return s.error(c, "in literal null (expecting 'l')")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  6. src/encoding/asn1/asn1_test.go

    		t.Errorf("Bad result:\ngot: %+v\nwant: %+v", cert, derEncodedSelfSignedCert)
    	}
    }
    
    func TestCertificateWithNUL(t *testing.T) {
    	// This is the paypal NUL-hack certificate. It should fail to parse because
    	// NUL isn't a permitted character in a PrintableString.
    
    	var cert Certificate
    	if _, err := Unmarshal(derEncodedPaypalNULCertBytes, &cert); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 18:24:36 UTC 2023
    - 43.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Ascii.java

       * Normally used as a C string terminator.
       *
       * <p>Although RFC 20 names this as "Null", note that it is distinct from the C/C++ "NULL"
       * pointer.
       *
       * @since 8.0
       */
      public static final byte NUL = 0;
    
      /**
       * Start of Heading: A communication control character used at the beginning of a sequence of
       * characters which constitute a machine-sensible address or routing information. Such a sequence
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jul 19 15:43:07 UTC 2021
    - 21.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/scanner_test.go

    	}{
    		// Note: Positions for lexical errors are the earliest position
    		// where the error is apparent, not the beginning of the respective
    		// token.
    
    		// rune-level errors
    		{"fo\x00o", "invalid NUL character", 0, 2},
    		{"foo\n\ufeff bar", "invalid BOM in the middle of the file", 1, 0},
    		{"foo\n\n\xff    ", "invalid UTF-8 encoding", 2, 0},
    
    		// token-level errors
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 16:11:21 UTC 2022
    - 21.9K bytes
    - Viewed (0)
  9. src/os/os_test.go

    }
    
    func TestDevNullFile(t *testing.T) {
    	t.Parallel()
    
    	testDevNullFile(t, DevNull)
    	if runtime.GOOS == "windows" {
    		testDevNullFile(t, "./nul")
    		testDevNullFile(t, "//./nul")
    	}
    }
    
    var testLargeWrite = flag.Bool("large_write", false, "run TestLargeWriteToConsole test that floods console with output")
    
    func TestLargeWriteToConsole(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  10. src/cmd/go/internal/envcmd/env.go

    		}
    	}
    
    	if !utf8.ValidString(val) {
    		return fmt.Errorf("invalid UTF-8 in %s=... value", key)
    	}
    	if strings.Contains(val, "\x00") {
    		return fmt.Errorf("invalid NUL in %s=... value", key)
    	}
    	if strings.ContainsAny(val, "\v\r\n") {
    		return fmt.Errorf("invalid newline in %s=... value", key)
    	}
    	return nil
    }
    
    func readEnvFileLines(mustExist bool) []string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top