Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,049 for encodeTo (0.17 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/signatures/CrossBuildCachingKeyService.java

            @Override
            public void write(Encoder encoder, CacheEntry<PGPPublicKeyRing> value) throws Exception {
                encoder.writeLong(value.timestamp);
                PGPPublicKeyRing key = value.value;
                if (key != null) {
                    encoder.writeBoolean(true);
                    encoder.writeBinary(key.getEncoded());
                } else {
                    encoder.writeBoolean(false);
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:44:56 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/ModuleSourcesSerializer.java

                        int codecId = assertValidId(persistentModuleSource.getCodecId());
                        encoder.writeSmallInt(codecId);
                        PersistentModuleSource.Codec<PersistentModuleSource> codec = Cast.uncheckedCast(moduleSourceCodecs.get(codecId));
                        codec.encode(persistentModuleSource, encoder);
                    }
                } catch (IOException e) {
                    throw new UncheckedIOException(e);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. src/log/slog/json_handler.go

    		panic(fmt.Sprintf("bad kind: %s", v.Kind()))
    	}
    	return nil
    }
    
    func appendJSONMarshal(buf *buffer.Buffer, v any) error {
    	// Use a json.Encoder to avoid escaping HTML.
    	var bb bytes.Buffer
    	enc := json.NewEncoder(&bb)
    	enc.SetEscapeHTML(false)
    	if err := enc.Encode(v); err != nil {
    		return err
    	}
    	bs := bb.Bytes()
    	buf.Write(bs[:len(bs)-1]) // remove final newline
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:18:11 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  4. src/encoding/pem/pem.go

    package pem
    
    import (
    	"bytes"
    	"encoding/base64"
    	"errors"
    	"io"
    	"slices"
    	"strings"
    )
    
    // A Block represents a PEM encoded structure.
    //
    // The encoded form is:
    //
    //	-----BEGIN Type-----
    //	Headers
    //	base64-encoded Bytes
    //	-----END Type-----
    //
    // where [Block.Headers] is a possibly empty sequence of Key: Value lines.
    type Block struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt

      val tag: Long,
      /** Encode and decode the value once tags are handled. */
      private val codec: Codec<T>,
      /** True if the default value should be used if this value is absent during decoding. */
      val isOptional: Boolean = false,
      /** The value to return if this value is absent. Undefined unless this is optional. */
      val defaultValue: T? = null,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. pkg/api/testing/unstructured_test.go

    		// encodes to a JSON string containing the base64 encoding of the slice
    		// contents. Decoding a JSON string into a byte slice assumes (and requires) that
    		// the JSON string contain base64-encoded data. The CBOR serializer must be
    		// compatible with this behavior.
    		"byte slices should be represented in unstructured as base64-encoded strings": {
    			{Version: "v1", Kind: "Secret"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/metadata/DefaultMetadataFileSourceCodec.java

        }
    
        @Override
        public void encode(MetadataFileSource moduleSource, Encoder encoder) throws IOException {
            ModuleComponentArtifactIdentifier artifactId = moduleSource.getArtifactId();
            ModuleComponentIdentifier componentIdentifier = artifactId.getComponentIdentifier();
            encoder.writeString(componentIdentifier.getGroup());
            encoder.writeString(componentIdentifier.getModule());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. src/encoding/binary/varint.go

    import (
    	"errors"
    	"io"
    )
    
    // MaxVarintLenN is the maximum length of a varint-encoded N-bit integer.
    const (
    	MaxVarintLen16 = 3
    	MaxVarintLen32 = 5
    	MaxVarintLen64 = 10
    )
    
    // AppendUvarint appends the varint-encoded form of x,
    // as generated by [PutUvarint], to buf and returns the extended buffer.
    func AppendUvarint(buf []byte, x uint64) []byte {
    	for x >= 0x80 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Codec.kt

    
    inline fun <T : Any> WriteContext.encodePreservingIdentityOf(reference: T, encode: WriteContext.(T) -> Unit) {
        encodePreservingIdentityOf(isolate.identities, reference, encode)
    }
    
    
    inline fun <T : Any> WriteContext.encodePreservingSharedIdentityOf(reference: T, encode: WriteContext.(T) -> Unit) =
        encodePreservingIdentityOf(sharedIdentities, reference, encode)
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. src/unicode/utf8/utf8.go

    		i += size
    	}
    	return n
    }
    
    // RuneStart reports whether the byte could be the first byte of an encoded,
    // possibly invalid rune. Second and subsequent bytes always have the top two
    // bits set to 10.
    func RuneStart(b byte) bool { return b&0xC0 != 0x80 }
    
    // Valid reports whether p consists entirely of valid UTF-8-encoded runes.
    func Valid(p []byte) bool {
    	// This optimization avoids the need to recompute the capacity
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top