Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 84 for encodeArg (0.37 sec)

  1. 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: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Encoder.java

    import java.io.OutputStream;
    
    /**
     * Provides a way to encode structured data to a backing byte stream. Implementations may buffer outgoing encoded bytes prior
     * to writing to the backing byte stream.
     */
    public interface Encoder {
        /**
         * Returns an {@link OutputStream} that can be used to write raw bytes to the stream.
         */
        OutputStream getOutputStream();
    
        /**
         * Writes a raw byte value to the stream.
         */
    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. 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: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/package-info.java

     *      The WriteContext keeps track (among other things) of the low level binary stream (actually, a Gradle serialization {@link org.gradle.internal.serialize.Encoder Encoder}) and the codec to be used.
     *  </p>
     *  <p>
     *      Object serialization is a graph-walking process, and as such, it has a recursive nature.
     *  </p>
     *  <p></p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/kryo/KryoBackedCodecTest.groovy

            when:
            def bytes = encode { Encoder encoder ->
                encoder.encodeChunked { Encoder nested ->
                    nested.writeSmallInt(1)
                    nested.writeString("chunked")
                }
                encoder.encodeChunked { Encoder nested ->
                }
                encoder.encodeChunked { Encoder nested ->
                    nested.writeSmallInt(2)
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ImplementationSnapshotSerializer.java

                protected void writeAdditionalData(Encoder encoder, ImplementationSnapshot implementationSnapshot) throws Exception {
                    LambdaImplementationSnapshot serLambda = (LambdaImplementationSnapshot) implementationSnapshot;
                    hashCodeSerializer.write(encoder, serLambda.getClassLoaderHash());
                    encoder.writeString(serLambda.getFunctionalInterfaceClass());
                    encoder.writeString(serLambda.getImplClass());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 12:33:49 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/impl/FileCollectionFingerprintSerializer.java

            return builder.build();
        }
    
        @Override
        public void write(Encoder encoder, FileCollectionFingerprint value) throws Exception {
            fingerprintMapSerializer.write(encoder, value.getFingerprints());
            if (!value.getFingerprints().isEmpty()) {
                writeRootHashes(encoder, value.getRootHashes());
                hashCodeSerializer.write(encoder, ((SerializableFileCollectionFingerprint) value).getStrategyConfigurationHash());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:34 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DefaultDaemonContext.java

            }
    
            @Override
            public void write(Encoder encoder, DefaultDaemonContext context) throws Exception {
                encoder.writeNullableString(context.uid);
                encoder.writeString(context.javaHome.getPath());
                encoder.writeSmallInt(context.javaVersion.asInt());
                encoder.writeString(context.daemonRegistryDir.getPath());
                encoder.writeBoolean(context.pid != null);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/ComponentResultSerializer.java

            }
            builder.endVisitComponent();
        }
    
        public void write(Encoder encoder, ResolvedGraphComponent value) throws IOException {
            try {
                encoder.writeSmallLong(value.getResultId());
                reasonSerializer.write(encoder, value.getSelectionReason());
                encoder.writeNullableString(value.getRepositoryName());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/serializer/IntQuestionPromptEventSerializer.java

    import org.gradle.internal.serialize.Encoder;
    import org.gradle.internal.serialize.Serializer;
    
    public class IntQuestionPromptEventSerializer implements Serializer<IntQuestionPromptEvent> {
        @Override
        public void write(Encoder encoder, IntQuestionPromptEvent value) throws Exception {
            encoder.writeLong(value.getTimestamp());
            encoder.writeString(value.getQuestion());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:02:18 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top