Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,907 for encodeB (0.11 sec)

  1. src/cmd/internal/obj/riscv/obj.go

    	bEncoding = encoding{encode: encodeB, validate: validateB, length: 4}
    	uEncoding = encoding{encode: encodeU, validate: validateU, length: 4}
    	jEncoding = encoding{encode: encodeJ, validate: validateJ, length: 4}
    
    	// rawEncoding encodes a raw instruction byte sequence.
    	rawEncoding = encoding{encode: encodeRawIns, validate: validateRaw, length: 4}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  2. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Encoder.java

        /**
         * Writes the given byte array to the stream. Encodes the bytes and length information.
         */
        void writeBinary(byte[] bytes, int offset, int count) throws IOException;
    
        /**
         * Appends an encoded stream to this stream. Encodes the stream as a series of chunks with length information.
         */
        void encodeChunked(EncodeAction<Encoder> writeAction) throws Exception;
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/internal/pkgbits/encoder.go

    func (w *Encoder) Uint64(x uint64) {
    	w.Sync(SyncUint64)
    	w.rawUvarint(x)
    }
    
    // Len encodes and writes a non-negative int value into the element bitstream.
    func (w *Encoder) Len(x int) { assert(x >= 0); w.Uint64(uint64(x)) }
    
    // Int encodes and writes an int value into the element bitstream.
    func (w *Encoder) Int(x int) { w.Int64(int64(x)) }
    
    // Len encodes and writes a uint value into the element bitstream.
    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/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: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/encode.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package modes
    
    import (
    	"github.com/fxamacker/cbor/v2"
    )
    
    var Encode cbor.EncMode = func() cbor.EncMode {
    	encode, err := cbor.EncOptions{
    		// Map keys need to be sorted to have deterministic output, and this is the order
    		// defined in RFC 8949 4.2.1 "Core Deterministic Encoding Requirements".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 15 15:31:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. fastapi/encoders.py

        Convert any object to something that can be encoded in JSON.
    
        This is used internally by FastAPI to make sure anything you return can be
        encoded as JSON before it is sent to the client.
    
        You can also use it yourself, for example to convert objects before saving them
        in a database that supports only JSON.
    
        Read more about it in the
        [FastAPI docs for JSON Compatible Encoder](https://fastapi.tiangolo.com/tutorial/encoder/).
    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. 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: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  8. src/encoding/gob/encoder.go

    	enc := new(Encoder)
    	enc.w = []io.Writer{w}
    	enc.sent = make(map[reflect.Type]typeId)
    	enc.countState = enc.newEncoderState(new(encBuffer))
    	return enc
    }
    
    // writer returns the innermost writer the encoder is using.
    func (enc *Encoder) writer() io.Writer {
    	return enc.w[len(enc.w)-1]
    }
    
    // pushWriter adds a writer to the encoder.
    func (enc *Encoder) pushWriter(w io.Writer) {
    	enc.w = append(enc.w, w)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/net/http2/hpack/encode.go

    	// 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.
    func NewEncoder(w io.Writer) *Encoder {
    	e := &Encoder{
    		minSize:         uint32Max,
    		maxSizeLimit:    initialHeaderTableSize,
    		tableSizeUpdate: false,
    		w:               w,
    	}
    	e.dynTab.table.init()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/encoder.md

        ```Python hl_lines="4  21"
        {!> ../../../docs_src/encoder/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="5  22"
        {!> ../../../docs_src/encoder/tutorial001.py!}
        ```
    
    In this example, it would convert the Pydantic model to a `dict`, and the `datetime` to a `str`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top