- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 589 for encodeTo (0.07 sec)
-
guava/src/com/google/common/io/BaseEncoding.java
super(message); } } /** Encodes the specified byte array, and returns the encoded {@code String}. */ public String encode(byte[] bytes) { return encode(bytes, 0, bytes.length); } /** * Encodes the specified range of the specified byte array, and returns the encoded {@code * String}. */ public final String encode(byte[] bytes, int off, int len) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 41.8K bytes - Viewed (0) -
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: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 10.8K bytes - Viewed (0) -
docs/en/docs/tutorial/encoder.md
It receives an object, like a Pydantic model, and returns a JSON compatible version: {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *} In this example, it would convert the Pydantic model to a `dict`, and the `datetime` to a `str`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 23:31:16 UTC 2024 - 1.6K bytes - Viewed (0) -
docs/uk/docs/tutorial/encoder.md
Вона приймає об'єкт, такий як Pydantic model, і повертає його версію, сумісну з JSON: //// tab | Python 3.10+ ```Python hl_lines="4 21" {!> ../../docs_src/encoder/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="5 22" {!> ../../docs_src/encoder/tutorial001.py!} ``` //// У цьому прикладі вона конвертує Pydantic model у `dict`, а `datetime` у `str`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.6K bytes - Viewed (0) -
docs/de/docs/tutorial/encoder.md
//// tab | Python 3.10+ ```Python hl_lines="4 21" {!> ../../docs_src/encoder/tutorial001_py310.py!} ``` //// //// tab | 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: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.9K bytes - Viewed (0) -
docs/ru/docs/tutorial/encoder.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.8K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ReaderInputStream.java
*/ ReaderInputStream(Reader reader, CharsetEncoder encoder, int bufferSize) { this.reader = checkNotNull(reader); this.encoder = checkNotNull(encoder); checkArgument(bufferSize > 0, "bufferSize must be positive: %s", bufferSize); encoder.reset(); charBuffer = CharBuffer.allocate(bufferSize); Java8Compatibility.flip(charBuffer); byteBuffer = ByteBuffer.allocate(bufferSize); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 9.3K bytes - Viewed (0) -
guava/src/com/google/common/io/ReaderInputStream.java
*/ ReaderInputStream(Reader reader, CharsetEncoder encoder, int bufferSize) { this.reader = checkNotNull(reader); this.encoder = checkNotNull(encoder); checkArgument(bufferSize > 0, "bufferSize must be positive: %s", bufferSize); encoder.reset(); charBuffer = CharBuffer.allocate(bufferSize); Java8Compatibility.flip(charBuffer); byteBuffer = ByteBuffer.allocate(bufferSize); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 9.3K bytes - Viewed (0) -
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: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.9K bytes - Viewed (0) -
cmd/erasure-coding.go
return e, reedsolomon.ErrMaxShardNum } e = Erasure{ dataBlocks: dataBlocks, parityBlocks: parityBlocks, blockSize: blockSize, } // Encoder when needed. var enc reedsolomon.Encoder var once sync.Once e.encoder = func() reedsolomon.Encoder { once.Do(func() { e, err := reedsolomon.New(dataBlocks, parityBlocks, reedsolomon.WithAutoGoroutines(int(e.ShardSize()))) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jan 31 02:11:45 UTC 2024 - 8.6K bytes - Viewed (0)