Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for writeRaw (0.11 sec)

  1. platforms/core-configuration/guava-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/guava/ImmutableMapCodec.kt

    import org.gradle.internal.serialize.graph.WriteContext
    import org.gradle.internal.serialize.graph.writeMap
    
    
    object ImmutableMapCodec : Codec<ImmutableMap<Any, Any>> {
    
        override suspend fun WriteContext.encode(value: ImmutableMap<Any, Any>) {
            writeMap(value)
        }
    
        override suspend fun ReadContext.decode(): ImmutableMap<Any, Any>? {
            val size = readSmallInt()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/CollectionCodecs.kt

        {
            write(it.comparator())
            writeMap(it)
        },
        {
            @Suppress("unchecked_cast")
            val comparator = read() as Comparator<Any?>?
            readMapInto { TreeMap(comparator) }
        }
    )
    
    
    fun <T : MutableMap<Any?, Any?>> mapCodec(factory: (Int) -> T): Codec<T> = codec(
        { writeMap(it) },
        { readMapInto(factory) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. src/net/tcpsockopt_plan9.go

    }
    
    // Set keep alive period.
    func setKeepAliveIdle(fd *netFD, d time.Duration) error {
    	if d < 0 {
    		return nil
    	}
    
    	cmd := "keepalive " + itoa.Itoa(int(d/time.Millisecond))
    	_, e := fd.ctl.WriteAt([]byte(cmd), 0)
    	return e
    }
    
    func setKeepAliveInterval(_ *netFD, d time.Duration) error {
    	if d < 0 {
    		return nil
    	}
    	return syscall.EPLAN9
    }
    
    func setKeepAliveCount(_ *netFD, n int) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 762 bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/query/StoredLtrQueryBuilder.java

        }
    
        @Override
        protected void doWriteTo(final StreamOutput out) throws IOException {
            out.writeOptionalString(modelName);
            out.writeOptionalString(featureSetName);
            out.writeMap(params);
            out.writeOptionalStringArray(activeFeatures != null ? activeFeatures.toArray(new String[0]) : null);
            out.writeOptionalString(storeName);
        }
    
        @Override
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/macho_update_uuid.go

    			return err
    		}
    		if cmd.Cmd == LC_UUID {
    			var u uuidCmd
    			if err := reader.ReadAt(0, &u); err != nil {
    				return err
    			}
    			copy(u.Uuid[:], uuidFromGoBuildId(*flagBuildid))
    			if err := reader.WriteAt(0, &u); err != nil {
    				return err
    			}
    			break
    		}
    	}
    
    	// We're done
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Combinators.kt

    }
    
    
    suspend fun <T : MutableCollection<Any?>> ReadContext.readCollectionInto(factory: (Int) -> T): T =
        readCollectionInto(factory) { read() }
    
    
    suspend fun WriteContext.writeMap(value: Map<*, *>) {
        writeSmallInt(value.size)
        writeMapEntries(value)
    }
    
    
    suspend fun WriteContext.writeMapEntries(value: Map<*, *>) {
        for (entry in value.entries) {
            write(entry.key)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:59:39 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top