Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 632 for Decoders (1.47 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/yaml/yaml_test.go

    			benchmark: true,
    		},
    	}
    }
    
    var decoders = map[string]func([]byte) ([]byte, error){
    	"sigsyaml": sigsyaml.YAMLToJSON,
    	"utilyaml": yaml.ToJSON,
    }
    
    func TestYAMLLimits(t *testing.T) {
    	for _, tc := range testcases() {
    		if tc.benchmark {
    			continue
    		}
    		t.Run(tc.name, func(t *testing.T) {
    			for decoderName, decoder := range decoders {
    				t.Run(decoderName, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 06 20:18:22 UTC 2020
    - 14.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/interfaces.go

    	StreamDecoder(contentType string, params map[string]string) (Decoder, Serializer, Framer, error)
    }
    
    // StorageSerializer is an interface used for obtaining encoders, decoders, and serializers
    // that can read and write data at rest. This would commonly be used by client tools that must
    // read files, or server side storage interfaces that persist restful objects.
    type StorageSerializer interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 19K bytes
    - Viewed (0)
  3. src/internal/pkgbits/encoder.go

    // Reloc encodes and writes a relocation for the given (section,
    // index) pair into the element bitstream.
    //
    // Note: Only the index is formally written into the element
    // bitstream, so bitstream decoders must know from context which
    // section an encoded relocation refers to.
    func (w *Encoder) Reloc(r RelocKind, idx Index) {
    	w.Sync(SyncUseReloc)
    	w.Len(w.rawReloc(r, idx))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 10 23:26:58 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/net/http2/hpack/hpack.go

    // underlying buffers for garbage reasons.
    
    func (d *Decoder) SetMaxDynamicTableSize(v uint32) {
    	d.dynTab.setMaxSize(v)
    }
    
    // SetAllowedMaxDynamicTableSize sets the upper bound that the encoded
    // stream (via dynamic table size updates) may set the maximum size
    // to.
    func (d *Decoder) SetAllowedMaxDynamicTableSize(v uint32) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 14 18:30:34 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  5. 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)
  6. src/encoding/gob/decode.go

    // The callers to the individual decoders are expected to have used decAlloc.
    // The individual decoders don't need it.
    func decAlloc(v reflect.Value) reflect.Value {
    	for v.Kind() == reflect.Pointer {
    		if v.IsNil() {
    			v.Set(reflect.New(v.Type().Elem()))
    		}
    		v = v.Elem()
    	}
    	return v
    }
    
    // decBool decodes a uint and stores it as a boolean in value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  7. src/compress/flate/inflate.go

    	// Input source.
    	r       Reader
    	rBuf    *bufio.Reader // created if provided io.Reader does not implement io.ByteReader
    	roffset int64
    
    	// Input bits, in top of b.
    	b  uint32
    	nb uint
    
    	// Huffman decoders for literal/length, distance.
    	h1, h2 huffmanDecoder
    
    	// Length arrays used to define Huffman codes.
    	bits     *[maxNumLit + maxNumDist]int
    	codebits *[numCodes]int
    
    	// Output history, buffer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  8. 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)
  9. src/internal/pkgbits/decoder.go

    // Int64 decodes and returns a uint64 value from the element bitstream.
    func (r *Decoder) Uint64() uint64 {
    	r.Sync(SyncUint64)
    	return r.rawUvarint()
    }
    
    // Len decodes and returns a non-negative int value from the element bitstream.
    func (r *Decoder) Len() int { x := r.Uint64(); v := int(x); assert(uint64(v) == x); return v }
    
    // Int decodes and returns an int value from the element bitstream.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 20:58:46 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go

    	return 0, nil, nil
    }
    
    // decoder is a convenience interface for Decode.
    type decoder interface {
    	Decode(into interface{}) error
    }
    
    // YAMLOrJSONDecoder attempts to decode a stream of JSON documents or
    // YAML documents by sniffing for a leading { character.
    type YAMLOrJSONDecoder struct {
    	r          io.Reader
    	bufferSize int
    
    	decoder decoder
    }
    
    type JSONSyntaxError struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 19 21:24:36 UTC 2021
    - 10.2K bytes
    - Viewed (0)
Back to top