Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for nul (0.01 sec)

  1. src/archive/tar/strconv.go

    	err error // Last error seen
    }
    
    // parseString parses bytes as a NUL-terminated C-style string.
    // If a NUL byte is not found then the whole slice is returned as a string.
    func (*parser) parseString(b []byte) string {
    	if i := bytes.IndexByte(b, 0); i >= 0 {
    		return string(b[:i])
    	}
    	return string(b)
    }
    
    // formatString copies s into b, NUL-terminating if possible.
    func (f *formatter) formatString(b []byte, s string) {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  2. src/archive/tar/reader.go

    				hdr.Format = FormatUnknown // Non-ASCII characters in block.
    			}
    			nul := func(b []byte) bool { return int(b[len(b)-1]) == 0 }
    			if !(nul(v7.size()) && nul(v7.mode()) && nul(v7.uid()) && nul(v7.gid()) &&
    				nul(v7.modTime()) && nul(ustar.devMajor()) && nul(ustar.devMinor())) {
    				hdr.Format = FormatUnknown // Numeric fields must end in NUL
    			}
    		case format.has(formatSTAR):
    			star := tr.blk.toSTAR()
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

            byte[] expectedString = "testfile.txt".getBytes("windows-1252");
            assertEquals(1 + expectedString.length + 1, used, "Expected exactly one command byte plus OEM string and NUL terminator");
            assertEquals(0x04, buffer[0] & 0xFF, "First byte must be SMB_COM_QUERY_INFORMATION type 0x04");
            // Verify that the string part ends with the null terminator
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/archive/tar/reader_test.go

    		file: "testdata/pax-nul-xattrs.tar",
    		err:  ErrHeader,
    	}, {
    		// BSD tar v3.1.2 rejects a PAX path with NUL in the value, while
    		// GNU tar v1.27.1 simply truncates at first NUL.
    		// We emulate the behavior of BSD since it is strange doing NUL
    		// truncations since PAX records are length-prefix strings instead
    		// of NUL-terminated C-strings.
    		file: "testdata/pax-nul-path.tar",
    		err:  ErrHeader,
    	}, {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  5. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/GenerateIdnaMappingTableCode.kt

              data.ranges.escapeDataString(),
              data.mappings.escapeDataString(),
            ).build(),
        ).build()
    }
    
    /**
     * KotlinPoet doesn't really know what to do with a string containing NUL, BEL, DEL, etc. We also
     * don't want to perform `trimMargin()` at runtime.
     */
    fun String.escapeDataString(): String =
      buildString {
        for (codePoint in ******@****.***ints()) {
          when (codePoint) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. integration-tests/gradle/gradlew.bat

    set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
    
    @rem Find java.exe
    if defined JAVA_HOME goto findJavaFromJavaHome
    
    set JAVA_EXE=java.exe
    %JAVA_EXE% -version >NUL 2>&1
    if %ERRORLEVEL% equ 0 goto execute
    
    echo. 1>&2
    echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
    echo. 1>&2
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 21 19:14:29 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. apache-maven/src/assembly/maven/bin/mvn

    concat_lines() {
      if [ -f "$1" ]; then
        # First convert all CR to LF using tr
        tr '\r' '\n' < "$1" | \
        sed -e '/^$/d' -e 's/#.*$//' | \
        # Replace LF with NUL for xargs
        tr '\n' '\0' | \
        # Split into words and process each argument
        # Use -0 with NUL to avoid special behaviour on quotes
        xargs -n 1 -0 | \
        while read -r arg; do
          # Replace variables first
          arg=$(echo "$arg" | sed \
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Jul 24 09:49:07 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/PathValidator.java

        private static final Pattern DANGEROUS_CHARS = Pattern.compile("[<>:\"|?*]");
    
        // Windows reserved names
        private static final Set<String> WINDOWS_RESERVED = Set.of("CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6",
                "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9");
    
        // Configuration
        private final int maxPathLength;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  9. apache-maven/src/assembly/maven/bin/mvn.cmd

      goto error
    )
    
    @REM Check Java version by testing the Java 17+ flag
    "%JAVACMD%" --enable-native-access=ALL-UNNAMED -version >nul 2>&1
    if ERRORLEVEL 1 (
        echo Error: Apache Maven 4.x requires Java 17 or newer to run. >&2
        "%JAVACMD%" -version >&2
        echo Please upgrade your Java installation or set JAVA_HOME to point to a compatible JDK. >&2
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Jul 24 09:49:07 UTC 2025
    - 9.6K bytes
    - Viewed (3)
  10. gradlew.bat

    set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
    
    @rem Find java.exe
    if defined JAVA_HOME goto findJavaFromJavaHome
    
    set JAVA_EXE=java.exe
    %JAVA_EXE% -version >NUL 2>&1
    if %ERRORLEVEL% equ 0 goto execute
    
    echo. 1>&2
    echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
    echo. 1>&2
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Apr 26 02:17:22 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top