Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for 0x800 (0.2 sec)

  1. src/archive/zip/writer.go

    	utf8Valid1, utf8Require1 := detectUTF8(fh.Name)
    	utf8Valid2, utf8Require2 := detectUTF8(fh.Comment)
    	switch {
    	case fh.NonUTF8:
    		fh.Flags &^= 0x800
    	case (utf8Require1 || utf8Require2) && (utf8Valid1 && utf8Valid2):
    		fh.Flags |= 0x800
    	}
    
    	fh.CreatorVersion = fh.CreatorVersion&0xff00 | zipVersion20 // preserve compatibility byte
    	fh.ReaderVersion = zipVersion20
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/Utf8Test.java

      }
    
      public void testEncodedLength_validStrings2() {
        HashMap<Integer, Integer> utf8Lengths = new HashMap<>();
        utf8Lengths.put(0x00, 1);
        utf8Lengths.put(0x7f, 1);
        utf8Lengths.put(0x80, 2);
        utf8Lengths.put(0x7ff, 2);
        utf8Lengths.put(0x800, 3);
        utf8Lengths.put(MIN_SUPPLEMENTARY_CODE_POINT - 1, 3);
        utf8Lengths.put(MIN_SUPPLEMENTARY_CODE_POINT, 4);
        utf8Lengths.put(MAX_CODE_POINT, 4);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/Utf8Test.java

      }
    
      public void testEncodedLength_validStrings2() {
        HashMap<Integer, Integer> utf8Lengths = new HashMap<>();
        utf8Lengths.put(0x00, 1);
        utf8Lengths.put(0x7f, 1);
        utf8Lengths.put(0x80, 2);
        utf8Lengths.put(0x7ff, 2);
        utf8Lengths.put(0x800, 3);
        utf8Lengths.put(MIN_SUPPLEMENTARY_CODE_POINT - 1, 3);
        utf8Lengths.put(MIN_SUPPLEMENTARY_CODE_POINT, 4);
        utf8Lengths.put(MAX_CODE_POINT, 4);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/archive/zip/struct.go

    	// but these seem to be the values agreed on by tools.
    	s_IFMT   = 0xf000
    	s_IFSOCK = 0xc000
    	s_IFLNK  = 0xa000
    	s_IFREG  = 0x8000
    	s_IFBLK  = 0x6000
    	s_IFDIR  = 0x4000
    	s_IFCHR  = 0x2000
    	s_IFIFO  = 0x1000
    	s_ISUID  = 0x800
    	s_ISGID  = 0x400
    	s_ISVTX  = 0x200
    
    	msdosDir      = 0x10
    	msdosReadOnly = 0x01
    )
    
    // Mode returns the permission and mode bits for the [FileHeader].
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  5. src/archive/zip/reader.go

    		// Some ZIP writers use UTF-8 encoding without setting the UTF-8 flag.
    		// Since it is impossible to always distinguish valid UTF-8 from some
    		// other encoding (e.g., GBK or Shift-JIS), we trust the flag.
    		f.NonUTF8 = f.Flags&0x800 == 0
    	}
    
    	needUSize := f.UncompressedSize == ^uint32(0)
    	needCSize := f.CompressedSize == ^uint32(0)
    	needHeaderOffset := f.headerOffset == int64(^uint32(0))
    
    	// Best effort to find what we need.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  6. okhttp-logging-interceptor/src/test/java/okhttp3/logging/IsProbablyUtf8Test.kt

        assertThat(Buffer().writeUtf8("new\r\nlines").isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeUtf8("white\t space").isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeByte(0x80).isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeByte(0x00).isProbablyUtf8()).isFalse()
        assertThat(Buffer().writeByte(0xc0).isProbablyUtf8()).isFalse()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  7. src/archive/zip/reader_test.go

    	data := []byte{
    		0x50, 0x4b, 0x03, 0x04, 0x14, 0x00, 0x08, 0x00,
    		0x00, 0x00, 0x6b, 0xb4, 0xba, 0x46, 0x00, 0x00,
    		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    		0x00, 0x00, 0x03, 0x00, 0x18, 0x00, 0xca, 0x64,
    		0x55, 0x75, 0x78, 0x0b, 0x00, 0x50, 0x4b, 0x05,
    		0x06, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01,
    		0x00, 0x49, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00,
    		0x00, 0x31, 0x31, 0x31, 0x32, 0x32, 0x32, 0x0a,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

                  new byte[] {(byte) 0xcd, (byte) 0xab, (byte) 0x00, (byte) 0x00},
                  0x0000abcd,
                  null,
                  "cdab0000"),
              new ExpectedHashCode(
                  new byte[] {
                    (byte) 0xef, (byte) 0xcd, (byte) 0xab, (byte) 0x00,
                    (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00
                  },
                  0x00abcdef,
                  0x0000000000abcdefL,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  9. src/archive/zip/writer_test.go

    			name:    "hi, こんにちわ",
    			comment: "in the world",
    			flags:   0x808,
    		},
    		{
    			name:    "hi, こんにちわ",
    			comment: "in the world",
    			nonUTF8: true,
    			flags:   0x8,
    		},
    		{
    			name:    "hi, hello",
    			comment: "in the 世界",
    			flags:   0x808,
    		},
    		{
    			name:    "hi, こんにちわ",
    			comment: "in the 世界",
    			flags:   0x808,
    		},
    		{
    			name:    "the replacement rune is �",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  10. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt

          get() {
            val b3bit8 = mappedTo[0] and 0x80 != 0
            return if (b3bit8) 123 else 122
          }
    
        val b2: Int
          get() = mappedTo[0] and 0x7f
      }
    
      data class Inline2(
        override val rangeStart: Int,
        private val mappedTo: ByteString,
      ) : MappedRange {
        val b1: Int
          get() {
            val b2bit8 = mappedTo[0] and 0x80 != 0
            val b3bit8 = mappedTo[1] and 0x80 != 0
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.5K bytes
    - Viewed (0)
Back to top