Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,030 for encodeTo (0.13 sec)

  1. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/stream/EncodedStream.java

                }
                int byte2 = delegate.read();
                if (byte2 < 0) {
                    throw new IOException("Unable to decode, expected 2 bytes but received only 1 byte. It seems the stream was not encoded correctly.");
                }
                return (hexToByte(byte1) << 4) | hexToByte(byte2);
            }
    
            public static int hexToByte(int s) throws IOException {
                if (s >= '0' && s <= '9') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/BeanSpecCodec.kt

    import org.gradle.internal.serialize.graph.encodeBean
    
    
    /**
     * Forces the given [bean] to be encoded via the [BeanCodec] regardless of its type.
     */
    class BeanSpec(val bean: Any)
    
    
    object BeanSpecCodec : Codec<BeanSpec> {
    
        override suspend fun WriteContext.encode(value: BeanSpec) =
            encodeBean(value.bean)
    
        override suspend fun ReadContext.decode(): BeanSpec =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/SerializedLambdaParametersCheckingCodec.kt

     * If some of them are not, it logs a problem.
     *
     * The lambda is encoded straightforwardly as a bean, and, upon decoding, the bean is expected to be the [SerializedLambda].
     * Beside the compliance checks, the values are encoded or decoded as beans without any special handling.
     *
     * @see [org.gradle.internal.serialize.beans.services.unsupportedFieldDeclaredTypes]
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. pkg/credentialprovider/plugin/plugin.go

    	}
    	return nil
    }
    
    // encodeRequest encodes the internal CredentialProviderRequest type into the v1alpha1 version in json
    func (e *execPlugin) encodeRequest(request *credentialproviderapi.CredentialProviderRequest) ([]byte, error) {
    	data, err := runtime.Encode(e.encoder, request)
    	if err != nil {
    		return nil, fmt.Errorf("error encoding request: %w", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 05:07:28 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        assertFailsWith<ProtocolException> {
          derReader.read("test") {}
        }.also { expected ->
          assertThat(expected.message)
            .isEqualTo("length encoded with more than 8 bytes is not supported")
        }
      }
    
      @Test fun `encode tag and length`() {
        val buffer = Buffer()
        val derWriter = DerWriter(buffer)
    
        derWriter.write("test", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 30L) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/locklistener/FileLockPacketPayloadTest.groovy

    import static org.gradle.cache.internal.locklistener.FileLockPacketType.UNKNOWN
    
    class FileLockPacketPayloadTest extends Specification {
    
        def "encodes lock id and type"() {
            when:
            def bytes = FileLockPacketPayload.encode(42, LOCK_RELEASE_CONFIRMATION)
    
            then:
            bytes.length == FileLockPacketPayload.MAX_BYTES
            bytes == [1, 0, 0, 0, 0, 0, 0, 0, 42, 3] as byte[]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. src/cmd/internal/cov/covcmd/cmddefs.go

    // compiler when the instrumented code is compiled. The cmd/cover tool
    // creates a struct of this type, JSON-encodes it, and emits the
    // result to a file, which the Go command then passes to the compiler
    // when the instrumented package is built.
    type CoverFixupConfig struct {
    	// Name of the variable (created by cmd/cover) containing the
    	// encoded meta-data for the package.
    	MetaVar string
    
    	// Length of the meta-data.
    	MetaLen int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 30 16:13:15 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/cases/trieval.go

    	hasMappingMask = 0xff80 | exceptionBit
    )
    
    // The case mode bits encodes the case type of a rune. This includes uncased,
    // title, upper and lower case and case ignorable. (For a definition of these
    // terms see Chapter 3 of The Unicode Standard Core Specification.) In some rare
    // cases, a rune can be both cased and case-ignorable. This is encoded by
    // cIgnorableCased. A rune of this type is always lower case. Some runes are
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/IsolatableSerializerRegistry.java

        }
    
        private void writeState(Encoder encoder, Object state) throws Exception {
            if (state == null) {
                encoder.writeByte(NULL_TYPE);
            } else if (state instanceof Isolatable) {
                encoder.writeByte(ISOLATABLE_TYPE);
                writeIsolatable(encoder, (Isolatable<?>) state);
            } else if (state.getClass().isArray()) {
                encoder.writeByte(ARRAY_TYPE);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/dependency-management-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/dm/transform/TransformStepCodec.kt

        private val inputFingerprinter: InputFingerprinter
    ) : Codec<TransformStep> {
    
        override suspend fun WriteContext.encode(value: TransformStep) {
            encodePreservingSharedIdentityOf(value) {
                val project = value.owningProject ?: throw UnsupportedOperationException("TransformStep must have an owning project to be encoded.")
                writeString(project.path)
                write(value.transform)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top