Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,247 for encodeTo (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/image/jpeg/writer_test.go

    			imgYCbCr.Cb[co] = ccr
    			imgYCbCr.Cr[co] = ccb
    		}
    	}
    
    	// Now check that both images are identical after an encode.
    	var bufRGBA, bufYCbCr bytes.Buffer
    	Encode(&bufRGBA, imgRGBA, nil)
    	Encode(&bufYCbCr, imgYCbCr, nil)
    	if !bytes.Equal(bufRGBA.Bytes(), bufYCbCr.Bytes()) {
    		t.Errorf("RGBA and YCbCr encoded bytes differ")
    	}
    }
    
    func BenchmarkEncodeRGBA(b *testing.B) {
    	img := image.NewRGBA(image.Rect(0, 0, 640, 480))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:30 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  9. src/encoding/pem/pem_test.go

    		if block.Headers == nil {
    			// Encoder supports nil Headers but decoder returns initialized.
    			block.Headers = make(map[string]string)
    		}
    		if block.Bytes == nil {
    			// Encoder supports nil Bytes but decoder returns initialized.
    			block.Bytes = make([]byte, 0)
    		}
    		if !reflect.DeepEqual(decoded, &block) {
    			t.Errorf("Encode of %#v decoded as %#v", &block, decoded)
    			return false
    		}
    		if len(rest) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:56:00 UTC 2022
    - 23.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * query the fragment is not sent to the webserver: it's private to the client.
     *
     * ## Encoding
     *
     * Each component must be encoded before it is embedded in the complete URL. As we saw above, the
     * string `cute #puppies` is encoded as `cute%20%23puppies` when used as a query parameter value.
     *
     * ### Percent encoding
     *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
Back to top