Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,875 for Encoder (0.17 sec)

  1. 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: 2024-06-12 16:32
    - Last Modified: 2022-08-10 23:26
    - 9.6K bytes
    - Viewed (0)
  2. 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: 2024-06-12 16:32
    - Last Modified: 2023-09-08 19:04
    - 7.8K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/encoder.md

    同様に、このデータベースはPydanticモデル(属性を持つオブジェクト)を受け取らず、`dict`だけを受け取ります。
    
    そのために`jsonable_encoder`を使用することができます。
    
    Pydanticモデルのようなオブジェクトを受け取り、JSON互換版を返します:
    
    ```Python hl_lines="5 22"
    {!../../../docs_src/encoder/tutorial001.py!}
    ```
    
    この例では、Pydanticモデルを`dict`に、`datetime`を`str`に変換します。
    
    Registered: 2024-06-17 08:32
    - Last Modified: 2024-01-22 20:09
    - 1.9K bytes
    - Viewed (0)
  4. docs/uk/docs/tutorial/encoder.md

    === "Python 3.10+"
    
        ```Python hl_lines="4  21"
        {!> ../../../docs_src/encoder/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="5  22"
        {!> ../../../docs_src/encoder/tutorial001.py!}
        ```
    
    У цьому прикладі вона конвертує Pydantic model у `dict`, а `datetime` у `str`.
    
    Registered: 2024-06-17 08:32
    - Last Modified: 2024-04-18 19:53
    - 2.6K bytes
    - Viewed (0)
  5. 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: 2024-06-12 18:38
    - Last Modified: 2024-04-15 16:06
    - 4.1K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/encoder.md

    === "Python 3.10+"
    
        ```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 diesem Beispiel wird das Pydantic-Modell in ein `dict`, und das `datetime`-Objekt in ein `str` konvertiert.
    
    Registered: 2024-06-17 08:32
    - Last Modified: 2024-03-30 18:07
    - 1.9K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/encoder.md

    === "Python 3.10+"
    
        ```Python hl_lines="4  21"
        {!> ../../../docs_src/encoder/tutorial001_py310.py!}
        ```
    
    === "Python 3.6+"
    
        ```Python hl_lines="5  22"
        {!> ../../../docs_src/encoder/tutorial001.py!}
        ```
    
    В данном примере она преобразует Pydantic модель в `dict`, а `datetime` - в `str`.
    
    Registered: 2024-06-17 08:32
    - Last Modified: 2024-01-23 13:56
    - 2.8K bytes
    - Viewed (0)
  8. 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: 2024-06-17 08:32
    - Last Modified: 2023-10-17 05:59
    - 1.8K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/encoder.md

    ⚫️ 📨 🎚, 💖 Pydantic 🏷, &amp; 📨 🎻 🔗 ⏬:
    
    === "🐍 3️⃣.6️⃣ &amp; 🔛"
    
        ```Python hl_lines="5  22"
        {!> ../../../docs_src/encoder/tutorial001.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ &amp; 🔛"
    
        ```Python hl_lines="4  21"
        {!> ../../../docs_src/encoder/tutorial001_py310.py!}
        ```
    
    👉 🖼, ⚫️ 🔜 🗜 Pydantic 🏷 `dict`, &amp; `datetime` `str`.
    
    Registered: 2024-06-17 08:32
    - Last Modified: 2023-04-01 09:26
    - 1.5K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/encoder.md

    === "Python 3.10+"
    
        ```Python hl_lines="4  21"
        {!> ../../../docs_src/encoder/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="5  22"
        {!> ../../../docs_src/encoder/tutorial001.py!}
        ```
    
    Neste exemplo, ele converteria o modelo Pydantic em um `dict`, e o `datetime` em um `str`.
    
    Registered: 2024-06-17 08:32
    - Last Modified: 2024-04-18 19:53
    - 1.9K bytes
    - Viewed (0)
Back to top