Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 290 of 851 for encoded (0.05 seconds)

  1. docs/zh/docs/tutorial/encoder.md

    # JSON 兼容编码器 { #json-compatible-encoder }
    
    在某些情况下,您可能需要将数据类型(如Pydantic模型)转换为与JSON兼容的数据类型(如`dict`、`list`等)。
    
    比如,如果您需要将其存储在数据库中。
    
    对于这种要求, **FastAPI**提供了`jsonable_encoder()`函数。
    
    ## 使用`jsonable_encoder` { #using-the-jsonable-encoder }
    
    让我们假设你有一个数据库名为`fake_db`,它只能接收与JSON兼容的数据。
    
    例如,它不接收`datetime`这类的对象,因为这些对象与JSON不兼容。
    
    因此,`datetime`对象必须转换为包含[ISO 格式](https://en.wikipedia.org/wiki/ISO_8601)的`str`类型对象。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  2. docs/ko/docs/tutorial/encoder.md

    # JSON 호환 가능 인코더 { #json-compatible-encoder }
    
    데이터 유형(예: Pydantic 모델)을 JSON과 호환되는 형태(예: `dict`, `list` 등)로 변환해야 하는 경우가 있습니다.
    
    예를 들면, 데이터베이스에 저장해야 하는 경우입니다.
    
    이를 위해, **FastAPI**에서는 `jsonable_encoder()` 함수를 제공합니다.
    
    ## `jsonable_encoder` 사용 { #using-the-jsonable-encoder }
    
    JSON 호환 가능 데이터만 수신하는 `fake_db` 데이터베이스가 존재한다고 가정하겠습니다.
    
    예를 들면, `datetime` 객체는 JSON과 호환되지 않으므로 이 데이터베이스는 이를 받지 않습니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

         *
         * @return the decoded short integer value
         */
        public int dec_ndr_short() {
            align(2);
            final int val = Encdec.dec_uint16le(buf, index);
            advance(2);
            return val;
        }
    
        /**
         * Encodes a long integer (4 bytes) in NDR format.
         *
         * @param l the long integer value to encode
         */
        public void enc_ndr_long(final int l) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

         *
         * @return the decoded short integer value
         */
        public int dec_ndr_short() {
            align(2);
            final int val = Encdec.dec_uint16le(this.buf, this.index);
            advance(2);
            return val;
        }
    
        /**
         * Encodes a long integer (4 bytes) in NDR format.
         *
         * @param l the long integer value to encode
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  5. RELEASE.md

    *   Added **categorical data** processing layers:
        *   `IntegerLookup` & `StringLookup`: build an index of categorical feature
            values
        *   `CategoryEncoding`: turn integer-encoded categories into one-hot,
            multi-hot, or tf-idf encoded representations
        *   `CategoryCrossing`: create new categorical features representing
            co-occurrences of previous categorical feature values
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Mon Mar 30 18:31:38 GMT 2026
    - 746.5K bytes
    - Click Count (3)
  6. docs/en/docs/reference/encoders.md

    # Encoders - `jsonable_encoder`
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 71 bytes
    - Click Count (0)
  7. internal/bucket/lifecycle/delmarker-expiration.go

    		return err
    	}
    
    	if dexp.Days <= 0 {
    		return errInvalidDaysDelMarkerExpiration
    	}
    
    	*de = DelMarkerExpiration(dexp)
    	return nil
    }
    
    // MarshalXML encodes a DelMarkerExpiration value into an XML element
    func (de DelMarkerExpiration) MarshalXML(enc *xml.Encoder, start xml.StartElement) error {
    	if de.Empty() {
    		return nil
    	}
    
    	type delMarkerExpiration DelMarkerExpiration
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  8. CHANGELOG/CHANGELOG-1.19.md

      - `status.conditions` may not contain duplicate types
      - `status.conditions[*].status` is now required
      - `status.certificate` must be PEM-encoded, and contain only CERTIFICATE blocks ([#91685](https://github.com/kubernetes/kubernetes/pull/91685), [@liggitt](https://github.com/liggitt)) [SIG API Machinery, Architecture, Auth, CLI and Testing]
    Created: Fri Apr 03 09:05:14 GMT 2026
    - Last Modified: Wed Jan 05 05:42:32 GMT 2022
    - 489.7K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            // Encode and decode
            byte[] buffer = new byte[50];
            info.encode(buffer, 0);
    
            FileBasicInfo decoded = new FileBasicInfo();
            decoded.decode(buffer, 0, 36);
    
            // Verify
            assertEquals(largeTime, decoded.getCreateTime());
            assertEquals(largeTime, decoded.getLastAccessTime());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  10. internal/bucket/lifecycle/expiration.go

    		return err
    	}
    	if numDays <= 0 {
    		return errLifecycleInvalidDays
    	}
    	*eDays = ExpirationDays(numDays)
    	return nil
    }
    
    // MarshalXML encodes number of days to expire if it is non-zero and
    // encodes empty string otherwise
    func (eDays ExpirationDays) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if eDays == 0 {
    		return nil
    	}
    	return e.EncodeElement(int(eDays), startElement)
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 6.6K bytes
    - Click Count (0)
Back to Top