Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 797 for CBytes (0.04 seconds)

  1. src/bytes/buffer.go

    // The return value n is the number of bytes written; it always fits into an
    // int, but it is int64 to match the [io.WriterTo] interface. Any error
    // encountered during the write is also returned.
    func (b *Buffer) WriteTo(w io.Writer) (n int64, err error) {
    	b.lastRead = opInvalid
    	if nBytes := b.Len(); nBytes > 0 {
    		m, e := w.Write(b.buf[b.off:])
    		if m > nBytes {
    			panic("bytes.Buffer.WriteTo: invalid Write count")
    		}
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Nov 14 19:01:17 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  2. cmd/admin-heal-ops.go

    ) {
    	// fetch heal state for given path
    	h, exists := ahs.getHealSequence(hpath)
    	if !exists {
    		// heal sequence doesn't exist, must have finished.
    		jbytes, err := json.Marshal(healSequenceStatus{
    			Summary: healFinishedStatus,
    		})
    		return jbytes, toAdminAPIErrCode(GlobalContext, err)
    	}
    
    	// Check if client-token is valid
    	if clientToken != h.clientToken {
    		return nil, ErrHealInvalidClientToken
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  3. docs/ja/docs/advanced/json-base64-bytes.md

    出力データ用にモデル設定で `ser_json_bytes` とともに `bytes` フィールドを使用することもでき、Pydantic は JSON レスポンスを生成するときにバイト列を base64 でシリアライズします。
    
    {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:2,12:16,29,38:41] hl[16] *}
    
    ## 入力・出力データ向けの Pydantic `bytes` { #pydantic-bytes-for-input-and-output-data }
    
    もちろん、同じモデルを base64 を使うように設定しておけば、JSON データの受信時は `val_json_bytes` で入力を「検証」し、送信時は `ser_json_bytes` で出力を「シリアライズ」する、といった具合に、入力と出力の両方を扱えます。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:55:22 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  4. docs/pt/docs/advanced/json-base64-bytes.md

    {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:9,29:35] hl[9] *}
    
    Se você verificar a `/docs`, verá que o campo `data` espera bytes codificados em base64:
    
    <div class="screenshot">
    <img src="/img/tutorial/json-base64-bytes/image01.png">
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:13 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/advanced/json-base64-bytes.md

    {
      "description": "Some data",
      "content": "hello"
    }
    ```
    
    ## Pydantic `bytes` 用於輸出資料 { #pydantic-bytes-for-output-data }
    
    你也可以在模型設定中搭配 `ser_json_bytes` 使用 `bytes` 欄位來處理輸出資料;當產生 JSON 回應時,Pydantic 會將位元組以 base64 進行序列化。
    
    {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:2,12:16,29,38:41] hl[16] *}
    
    ## Pydantic `bytes` 用於輸入與輸出資料 { #pydantic-bytes-for-input-and-output-data }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  6. docs/uk/docs/advanced/json-base64-bytes.md

      "content": "hello"
    }
    ```
    
    ## Pydantic `bytes` для вихідних даних { #pydantic-bytes-for-output-data }
    
    Ви також можете використовувати поля `bytes` з `ser_json_bytes` у конфігурації моделі для вихідних даних, і Pydantic серіалізує байти як base64 під час формування відповіді JSON.
    
    {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:2,12:16,29,38:41] hl[16] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:25:54 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  7. docs/es/docs/advanced/json-base64-bytes.md

    {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:9,29:35] hl[9] *}
    
    Si revisas `/docs`, verás que el campo `data` espera bytes codificados en base64:
    
    <div class="screenshot">
    <img src="/img/tutorial/json-base64-bytes/image01.png">
    </div>
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:12:26 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  8. docs/fr/docs/advanced/json-base64-bytes.md

    N'utilisez base64 que si vous devez absolument inclure des données binaires dans du JSON et que vous ne pouvez pas utiliser des fichiers pour cela.
    
    ## Pydantic `bytes` { #pydantic-bytes }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:33:45 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  9. docs/zh/docs/advanced/json-base64-bytes.md

      "description": "Some data",
      "content": "hello"
    }
    ```
    
    ## 用于输出数据的 Pydantic `bytes` { #pydantic-bytes-for-output-data }
    
    对于输出数据,你也可以在模型配置中为 `bytes` 字段使用 `ser_json_bytes`,Pydantic 会在生成 JSON 响应时将字节以 base64 进行序列化。
    
    {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:2,12:16,29,38:41] hl[16] *}
    
    ## 用于输入和输出数据的 Pydantic `bytes` { #pydantic-bytes-for-input-and-output-data }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  10. schema/field_test.go

    		{Name: "TIME", DBName: "ftime", BindNames: []string{"TIME"}, DataType: schema.Time, Creatable: true, Updatable: true, Readable: true, Tag: `gorm:"column:ftime"`},
    		{Name: "BYTES", DBName: "fbytes", BindNames: []string{"BYTES"}, DataType: schema.Bytes, Creatable: true, Updatable: true, Readable: true, Tag: `gorm:"column:fbytes"`},
    	}
    
    	for _, f := range fields {
    		checkSchemaField(t, alias, f, func(f *schema.Field) {})
    	}
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Feb 19 09:02:53 GMT 2022
    - 12.7K bytes
    - Click Count (0)
Back to Top