Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 250 for Decoders (0.29 sec)

  1. src/encoding/binary/binary_test.go

    		t.Fatal(err)
    	}
    
    	for _, dec := range decoders {
    		t.Run(dec.name, func(t *testing.T) {
    			defer func() {
    				if recover() == nil {
    					t.Fatal("did not panic")
    				}
    			}()
    			var u2 Unexported
    			dec.fn(LittleEndian, &u2, buf.Bytes())
    		})
    	}
    
    }
    
    func TestReadErrorMsg(t *testing.T) {
    	for _, dec := range decoders {
    		t.Run(dec.name, func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/package-info.java

     * limitations under the License.
     */
    
    /**
     * This subsystem implements serialization of configuration state.
     * <h2>Key abstractions</h2>
     *
     * <h3>Encoders and Decoders</h3>
     *  <p>
     *  Serialization of an object that is supported by the configuration cache is performed by an {@link org.gradle.internal.serialize.graph.EncodingProvider}.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/encoding/gob/type.go

    	ut := userType(rt)
    	return getType(name, ut, ut.base)
    }
    
    // getType returns the Gob type describing the given reflect.Type.
    // Should be called only when handling GobEncoders/Decoders,
    // which may be pointers. All other types are handled through the
    // base type, never a pointer.
    // typeLock must be held.
    func getType(name string, ut *userTypeInfo, rt reflect.Type) (gobType, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  4. src/encoding/gob/encoder_test.go

    	}
    
    	// Now test with a running encoder/decoder pair that we recognize a type mismatch.
    	err = enc.Encode(et1)
    	if err != nil {
    		t.Error("round 3: encoder fail:", err)
    	}
    	newEt2 := new(ET2)
    	err = dec.Decode(newEt2)
    	if err == nil {
    		t.Fatal("round 3: expected `bad type' error decoding ET2")
    	}
    }
    
    // Run one value through the encoder/decoder, but use the wrong type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  5. docs/de/docs/reference/encoders.md

    # Encoder – `jsonable_encoder`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Feb 19 15:54:52 UTC 2024
    - 72 bytes
    - Viewed (0)
  6. fastapi/encoders.py

        if isinstance(obj, BaseModel):
            # TODO: remove when deprecating Pydantic v1
            encoders: Dict[Any, Any] = {}
            if not PYDANTIC_V2:
                encoders = getattr(obj.__config__, "json_encoders", {})  # type: ignore[attr-defined]
                if custom_encoder:
                    encoders.update(custom_encoder)
            obj_dict = _model_dump(
                obj,
                mode="json",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Decoder.java

    import java.io.InputStream;
    
    /**
     * Provides a way to decode structured data from a backing byte stream. Implementations may buffer incoming bytes read
     * from the backing stream prior to decoding.
     */
    public interface Decoder {
        /**
         * Returns an InputStream which can be used to read raw bytes.
         */
        InputStream getInputStream();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. src/image/gif/reader.go

    // LZW decoder, which is thus immune to the blocking. After the LZW decoder
    // completes, there will be a 0-byte block remaining (0, ()), which is
    // consumed when checking that the blockReader is exhausted.
    //
    // To avoid the allocation of a bufio.Reader for the lzw Reader, blockReader
    // implements io.ByteReader and buffers blocks into the decoder's "tmp" buffer.
    type blockReader struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:15:54 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  9. src/image/jpeg/huffman.go

    const maxCodeLength = 16
    
    // maxNCodes is the maximum (inclusive) number of codes in a Huffman tree.
    const maxNCodes = 256
    
    // lutSize is the log-2 size of the Huffman decoder's look-up table.
    const lutSize = 8
    
    // huffman is a Huffman decoder, specified in section C.
    type huffman struct {
    	// length is the number of codes in the tree.
    	nCodes int32
    	// lut is the look-up table for the next lutSize bits in the bit-stream.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/expiration.go

    	if !b.set {
    		return nil
    	}
    	return e.EncodeElement(b.val, startElement)
    }
    
    // UnmarshalXML decodes delete marker boolean from the XML form.
    func (b *Boolean) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error {
    	var exp bool
    	err := d.DecodeElement(&exp, &startElement)
    	if err != nil {
    		return err
    	}
    	b.val = exp
    	b.set = true
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Feb 21 20:28:34 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top