- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 1,366 for dwrite (0.14 sec)
-
src/compress/gzip/gzip_test.go
z := NewWriter(buf) msg := []byte("hello world") z.Write(msg) z.Close() z.Reset(buf2) z.Write(msg) z.Close() if buf.String() != buf2.String() { t.Errorf("buf2 %q != original buf of %q", buf2.String(), buf.String()) } } type limitedWriter struct { N int } func (l *limitedWriter) Write(p []byte) (n int, err error) { if n := l.N; n < len(p) { l.N = 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:10:06 UTC 2024 - 6K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_benchmark_test.go
for i := 0; i < b.N; i++ { rb.Write(data) } } func BenchmarkRingBuffer_AsyncWrite(b *testing.B) { rb := New(1024) data := []byte(strings.Repeat("a", 512)) buf := make([]byte, 512) go func() { for { rb.Write(data) } }() b.ResetTimer() for i := 0; i < b.N; i++ { rb.Read(buf) } } func BenchmarkRingBuffer_AsyncWriteBlocking(b *testing.B) { const sz = 512
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 1.7K bytes - Viewed (0) -
platforms/software/publish/src/main/java/org/gradle/api/publish/internal/metadata/JsonWriterScope.java
jsonWriter.beginObject(); contents.write(); jsonWriter.endObject(); } protected void write(String name, Number number) throws IOException { jsonWriter.name(name).value(number); } protected void write(String name, long length) throws IOException { jsonWriter.name(name).value(length); } protected void write(String name, boolean value) throws IOException {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 2.6K bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/external/javadoc/internal/JavadocOptionFileWriter.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 2.1K bytes - Viewed (0) -
src/compress/gzip/gzip.go
} // NewWriter returns a new [Writer]. // Writes to the returned writer are compressed and written to w. // // It is the caller's responsibility to call Close on the [Writer] when done. // Writes may be buffered and not flushed until Close. // // Callers that wish to set the fields in Writer.Header must do so before // the first call to Write, Flush, or Close. func NewWriter(w io.Writer) *Writer {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:40 UTC 2024 - 6.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt
private val path = mutableListOf<String>() /** * False unless we made a recursive call to [write] at the current stack frame. The explicit box * adapter can clear this to synthesize non-constructed values that are embedded in octet strings. */ var constructed = false fun write( name: String, tagClass: Int, tag: Long, block: (BufferedSink) -> Unit, ) {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashingOutputStream.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:43:29 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/IoActions.java
*/ public abstract class IoActions { /** * Gives a writer for the given file/encoding to the given write action, managing the streams. * * @param output The file to write to * @param encoding The character encoding to write with * @param action The action to write the actual content */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5.3K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/RecordingObjectOutputStream.kt
override fun writeObjectOverride(obj: Any?) = record { write(obj) } override fun write(`val`: Int) = record { outputStream.write(`val`) } override fun write(buf: ByteArray) = record { outputStream.write(buf) } override fun write(buf: ByteArray, off: Int, len: Int) = record { outputStream.write(buf, off, len) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 3.2K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/java/incrementalAnnotationProcessing/groovy/processor/src/main/java/org/gradle/ServiceRegistryProcessor.java
private void addServiceCreationMethod(Writer writer, TypeElement service) throws IOException { Name qualifiedName = service.getQualifiedName(); Name simpleName = service.getSimpleName(); writer.write(" public " + qualifiedName + " create" + simpleName + "() {"); writer.write(" return new " + service.getQualifiedName() + "();"); writer.write(" }"); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 2.5K bytes - Viewed (0)