Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,057 for qDecode (0.25 sec)

  1. src/encoding/gob/encoder_test.go

    	in, out any
    }
    
    var ignoreTests = []ignoreTest{
    	// Decode normal struct into an empty struct
    	{&struct{ A int }{23}, &struct{}{}},
    	// Decode normal struct into a nil.
    	{&struct{ A int }{23}, nil},
    	// Decode singleton string into a nil.
    	{"hello, world", nil},
    	// Decode singleton slice into a nil.
    	{[]int{1, 2, 3, 4}, nil},
    	// Decode struct containing an interface into a nil.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

            when:
            decode([] as byte[]) { Decoder decoder ->
                decoder.readBinary()
            }
    
            then:
            thrown(EOFException)
        }
    
        def "can encode and decode long #value"() {
            expect:
            def bytes = encode { Encoder encoder ->
                encoder.writeLong(value)
            }
            decode(bytes) { Decoder decoder ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. tests/test_local_docs.py

            redoc_favicon_url=redoc_favicon_url,
        )
        body_content = html.body.decode()
        assert redoc_js_url in body_content
        assert redoc_favicon_url in body_content
    
    
    def test_google_fonts_in_generated_redoc():
        body_with_google_fonts = get_redoc_html(
            openapi_url="/docs", title="title"
        ).body.decode()
        assert "fonts.googleapis.com" in body_with_google_fonts
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Dec 20 18:50:00 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/IsolatedCodecs.kt

        }
    
        override suspend fun ReadContext.decode(): NullValueSnapshot {
            return NullValueSnapshot.INSTANCE
        }
    }
    
    
    object IsolatedEnumValueSnapshotCodec : Codec<IsolatedEnumValueSnapshot> {
        override suspend fun WriteContext.encode(value: IsolatedEnumValueSnapshot) {
            write(value.value)
        }
    
        override suspend fun ReadContext.decode(): IsolatedEnumValueSnapshot {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/ArrayCodecs.kt

            }
        }
    
        override suspend fun ReadContext.decode(): Array<*> =
            readArray {
                read()
            }
    }
    
    
    object ShortArrayCodec : Codec<ShortArray> {
        override suspend fun WriteContext.encode(value: ShortArray) =
            writeLengthPrefixedShorts(this, value)
    
        override suspend fun ReadContext.decode() =
            readLengthPrefixedShorts(this)
    }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/idn/PunycodeTest.kt

        assertNull(Punycode.decode("xn--a-9b.net"))
        assertEquals("a՚.net", Punycode.decode("xn--a-99b.net"))
        assertEquals("a溠.net", Punycode.decode("xn--a-999b.net"))
        assertEquals("a\uD8E2\uDF5C.net", Punycode.decode("xn--a-9999b.net"))
        assertNull(Punycode.decode("xn--a-99999b.net"))
      }
    
      @Test fun dashInPrefix() {
        testEncodeDecode(
          unicode = "klmnöpqrst-uvwxy",
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/msrpc/netdfs.java

                    if (info == null) { /* YOYOYO */
                        info = new DfsEnumStruct();
                    }
                    info.decode(_src);
    
                }
                int _totalentriesp = _src.dec_ndr_long();
                if (_totalentriesp != 0) {
                    totalentries.decode(_src);
    
                }
                retval = (int)_src.dec_ndr_long();
            }
        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 15K bytes
    - Viewed (0)
  8. src/encoding/gob/gobencdec_test.go

    	if err != nil {
    		t.Fatal("encode error:", err)
    	}
    	dec := NewDecoder(b)
    	x := new(GobTestValueEncDec)
    	err = dec.Decode(x)
    	if err != nil {
    		t.Fatal("decode error:", err)
    	}
    	if x.G.s != "HIJKL" {
    		t.Errorf("expected `HIJKL` got %s", x.G.s)
    	}
    }
    
    // GobEncode/Decode should work even if the value is
    // more indirect than the receiver.
    func TestGobEncoderIndirectField(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/PermissionHelperTest.java

        public void test_decode() {
            assertNull(permissionHelper.decode(null));
            assertNull(permissionHelper.decode(""));
            assertNull(permissionHelper.decode(" "));
            assertNull(permissionHelper.decode("D"));
    
            assertEquals("{user}guest", permissionHelper.decode("1guest"));
            assertEquals("{role}guest", permissionHelper.decode("Rguest"));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. test/fixedbugs/issue57955.go

    package main
    
    func main() {
    	Decode[int16](nil)
    	Decode[uint16](nil)
    	Decode[float64](nil)
    }
    
    func DecodeInt16(b []byte) (int16, int) {
    	return 0, 0
    }
    
    func DecodeUint16(b []byte) (uint16, int) {
    	return 0, 0
    }
    
    func DecodeFloat64(b []byte) (float64, int) {
    	return 0, 0
    }
    
    func Decode[T any](b []byte) (T, int) {
    	switch any(*new(T)).(type) {
    	case int16:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 19:29:08 UTC 2023
    - 794 bytes
    - Viewed (0)
Back to top