Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,274 for encode (0.38 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/encode.go

    	}.EncMode()
    	if err != nil {
    		panic(err)
    	}
    	return encode
    }()
    
    var EncodeNondeterministic cbor.EncMode = func() cbor.EncMode {
    	opts := Encode.EncOptions()
    	opts.Sort = cbor.SortNone
    	em, err := opts.EncMode()
    	if err != nil {
    		panic(err)
    	}
    	return em
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-02-15 15:31
    - 3.6K bytes
    - Viewed (0)
  2. src/internal/coverage/encodecounter/encode.go

    }
    
    func (cfw *CoverageDataWriter) writeCounters(visitor CounterVisitor, ws *slicewriter.WriteSeeker) error {
    	// Notes:
    	// - this version writes everything little-endian, which means
    	//   a call is needed to encode every value (expensive)
    	// - we may want to move to a model in which we just blast out
    	//   all counters, or possibly mmap the file and do the write
    	//   implicitly.
    	ctrb := make([]byte, 4)
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-23 01:00
    - 7.8K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/profile/encode.go

    package profile
    
    import (
    	"errors"
    	"sort"
    	"strings"
    )
    
    func (p *Profile) decoder() []decoder {
    	return profileDecoder
    }
    
    // preEncode populates the unexported fields to be used by encode
    // (with suffix X) from the corresponding exported fields. The
    // exported fields are cleared up to facilitate testing.
    func (p *Profile) preEncode() {
    	strings := make(map[string]int)
    	addString(strings, "")
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-02-16 15:19
    - 17.1K bytes
    - Viewed (0)
  4. src/encoding/json/encode.go

    // by calling [Encoder.SetEscapeHTML](false).
    //
    // Array and slice values encode as JSON arrays, except that
    // []byte encodes as a base64-encoded string, and a nil slice
    // encodes as the null JSON value.
    //
    // Struct values encode as JSON objects.
    // Each exported struct field becomes a member of the object, using the
    // field name as the object key, unless the field is omitted for one of the
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-23 00:18
    - 36.2K bytes
    - Viewed (0)
  5. src/internal/profile/encode.go

    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package profile
    
    import (
    	"errors"
    	"fmt"
    	"sort"
    )
    
    func (p *Profile) decoder() []decoder {
    	return profileDecoder
    }
    
    // preEncode populates the unexported fields to be used by encode
    // (with suffix X) from the corresponding exported fields. The
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-12-07 19:52
    - 13.6K bytes
    - Viewed (0)
  6. src/encoding/gob/encode.go

    		return nil
    	}
    	info.encInit.Lock()
    	defer info.encInit.Unlock()
    	enc := info.encoder.Load()
    	if enc == nil {
    		if building == nil {
    			building = make(map[*typeInfo]bool)
    		}
    		building[info] = true
    		enc = compileEnc(ut, building)
    		info.encoder.Store(enc)
    	}
    	return enc
    }
    
    func (enc *Encoder) encode(b *encBuffer, value reflect.Value, ut *userTypeInfo) {
    	defer catchError(&enc.err)
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-16 02:00
    - 19K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/net/http2/hpack/encode.go

    	// maxSizeLimit is the maximum table size this encoder
    	// supports. This will protect the encoder from too large
    	// size.
    	maxSizeLimit uint32
    	// tableSizeUpdate indicates whether "Header Table Size
    	// Update" is required.
    	tableSizeUpdate bool
    	w               io.Writer
    	buf             []byte
    }
    
    // NewEncoder returns a new Encoder which performs HPACK encoding. An
    // encoded data is written to w.
    Registered: 2024-06-12 16:32
    - Last Modified: 2022-11-22 17:16
    - 7.1K bytes
    - Viewed (0)
  8. src/internal/coverage/encodemeta/encode.go

    	for idx := 0; idx < nFuncs; idx++ {
    		b.wrUint32(w, uint32(foff))
    		foff += int64(len(b.funcs[idx].encoded))
    	}
    	return off + (int64(len(b.funcs)) * 4)
    }
    
    func (b *CoverageMetaDataBuilder) emitFunc(w io.WriteSeeker, off int64, f funcDesc) (int64, error) {
    	ew := len(f.encoded)
    	if nw, err := w.Write(f.encoded); err != nil {
    		return 0, err
    	} else if ew != nw {
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-02-29 17:16
    - 5.5K bytes
    - Viewed (0)
  9. cmd/erasure-encode.go

    	return fmt.Errorf("%w (offline-disks=%d/%d)", writeErr, countErrs(p.errs, errDiskNotFound), len(p.writers))
    }
    
    // Encode reads from the reader, erasure-encodes the data and writes to the writers.
    func (e *Erasure) Encode(ctx context.Context, src io.Reader, writers []io.Writer, buf []byte, quorum int) (total int64, err error) {
    	writer := &multiWriter{
    		writers:     writers,
    		writeQuorum: quorum,
    Registered: 2024-06-16 00:44
    - Last Modified: 2024-05-15 00:11
    - 2.9K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/async-sql-encode-databases.md

    You can also use <a href="https://github.com/encode/databases" class="external-link" target="_blank">`encode/databases`</a> with **FastAPI** to connect to databases using `async` and `await`.
    
    It is compatible with:
    
    * PostgreSQL
    * MySQL
    * SQLite
    
    In this example, we'll use **SQLite**, because it uses a single file and Python has integrated support. So, you can copy this example and run it as is.
    
    Registered: 2024-06-17 08:32
    - Last Modified: 2024-04-18 19:53
    - 5.3K bytes
    - Viewed (0)
Back to top