- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 1,247 for encodeTo (0.13 sec)
-
src/compress/bzip2/huffman.go
// // However, for the initial call it's possible that len(codes) // is zero or one. Both cases are invalid because a zero length // tree cannot encode anything and a length-1 tree can only // encode EOF and so is superfluous. We reject both. if len(codes) < 2 { return 0, StructuralError("empty Huffman tree") } // In this case the recursion doesn't always reduce the length
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:44:37 UTC 2024 - 6.7K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/KryoBackedEncoder.java
if (value == null) { throw new IllegalArgumentException("Cannot encode a null string."); } output.writeString(value); } @Override public void writeNullableString(@Nullable CharSequence value) { output.writeString(value); } @Override public void encodeChunked(EncodeAction<Encoder> writeAction) throws Exception { if (nested == null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 4K bytes - Viewed (0) -
platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Contexts.kt
private val encoder: Encoder, private val beanStateWriterLookup: BeanStateWriterLookup, override val logger: Logger, override val tracer: Tracer?, problemsListener: ProblemsListener, private val classEncoder: ClassEncoder ) : AbstractIsolateContext<WriteIsolate>(codec, problemsListener), WriteContext, Encoder by encoder, AutoCloseable {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 7.3K bytes - Viewed (0) -
cmd/api-datatypes.go
} // DeleteMarkerMTime is an embedded type containing time.Time for XML marshal type DeleteMarkerMTime struct { time.Time } // MarshalXML encodes expiration date if it is non-zero and encodes // empty string otherwise func (t DeleteMarkerMTime) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error { if t.Time.IsZero() { return nil } return e.EncodeElement(t.Time.Format(time.RFC3339), startElement) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 14 07:26:50 UTC 2024 - 3K bytes - Viewed (0) -
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) -
android/guava-tests/test/com/google/common/io/BaseEncodingTest.java
assertThat(encoding.encode(decoded.getBytes(UTF_8), offset, len)).isEqualTo(encoded); } private static void testDecodes(BaseEncoding encoding, String encoded, String decoded) { assertThat(encoding.canDecode(encoded)).isTrue(); assertThat(encoding.decode(encoded)).isEqualTo(decoded.getBytes(UTF_8)); } private static void testDecodesByBytes(BaseEncoding encoding, String encoded, byte[] decoded) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Apr 06 12:56:11 UTC 2023 - 24.6K bytes - Viewed (0) -
cmd/prune-junit-xml/prunexml.go
_, err := writer.Write([]byte("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")) if err != nil { return err } encoder := xml.NewEncoder(writer) encoder.Indent("", "\t") err = encoder.Encode(in) if err != nil { return err } return encoder.Flush()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 12:26:00 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/kubectl/cmd/convert/convert.go
// used if that version is not present. func asVersionedObject(infos []*resource.Info, forceList bool, specifiedOutputVersion schema.GroupVersion, encoder runtime.Encoder, iostream genericclioptions.IOStreams) (runtime.Object, error) { objects, err := asVersionedObjects(infos, specifiedOutputVersion, encoder, iostream) if err != nil { return nil, err } var object runtime.Object if len(objects) == 1 && !forceList {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 03:21:17 UTC 2023 - 9.6K bytes - Viewed (0) -
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) -
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)