Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,364 for writePtr (0.11 sec)

  1. platforms/core-execution/build-cache-http/src/main/java/org/gradle/caching/http/internal/HttpBuildCacheService.java

                public long getContentLength() {
                    return writer.getSize();
                }
    
                @Override
                public InputStream getContent() {
                    throw new UnsupportedOperationException();
                }
    
                @Override
                public void writeTo(OutputStream outstream) throws IOException {
                    writer.writeTo(outstream);
                }
    
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 14:13:12 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. src/io/pipe_test.go

    }
    
    func TestWriteAfterWriterClose(t *testing.T) {
    	r, w := Pipe()
    	defer r.Close()
    	done := make(chan bool)
    	var writeErr error
    	go func() {
    		_, err := w.Write([]byte("hello"))
    		if err != nil {
    			t.Errorf("got error: %q; expected none", err)
    		}
    		w.Close()
    		_, writeErr = w.Write([]byte("world"))
    		done <- true
    	}()
    
    	buf := make([]byte, 100)
    	var result string
    	n, err := ReadFull(r, buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. src/archive/tar/testdata/writer-big-long.tar

    Joe Tsai <******@****.***> 1503105518 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 22:38:45 UTC 2017
    - 1.5K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache-spi/src/main/java/org/gradle/caching/BuildCacheEntryWriter.java

         *
         * @param output output stream to write build cache entry to
         * @throws IOException when an I/O error occurs when writing the cache entry to the given output stream
         */
        void writeTo(OutputStream output) throws IOException;
    
        /**
         * Returns the size of the build cache entry to be written.
         *
         * @return the size of the build cache entry to be written.
         * @since 4.1
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:09:36 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/printers/json.go

    type JSONPrinter struct{}
    
    // PrintObj is an implementation of ResourcePrinter.PrintObj which simply writes the object to the Writer.
    func (p *JSONPrinter) PrintObj(obj runtime.Object, w io.Writer) error {
    	// we use reflect.Indirect here in order to obtain the actual value from a pointer.
    	// we need an actual value in order to retrieve the package path for an object.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 10 11:23:25 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  6. pkg/bootstrap/fuzz_test.go

    		}
    		defer func() {
    			tf.Close()
    			os.Remove("templateFile")
    		}()
    		_, err = tf.Write(templateBytes)
    		if err != nil {
    			return
    		}
    
    		// call target
    		var buf bytes.Buffer
    		i.WriteTo("templateFile", io.Writer(&buf))
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 12 14:51:41 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  7. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceTest.groovy

            server.expectGetEmptyOk("/redirect/cache/${key.hashCode}")
    
            when:
            def writer = writer(content)
            cache.store(key, writer)
    
            then:
            noExceptionThrown()
            writer.writeCount == 1
        }
    
        def "storing to cache can follow method preserving redirects"() {
            def destFile = tempDir.file("cached.zip")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. pkg/ctrlz/fw/utils.go

    func RenderHTML(w http.ResponseWriter, t *template.Template, data any) {
    	b := &bytes.Buffer{}
    
    	if err := t.Execute(b, data); err != nil {
    		RenderError(w, http.StatusInternalServerError, err)
    		return
    	}
    
    	w.WriteHeader(http.StatusOK)
    	w.Header().Set("Content-Type", "text/html; charset=utf-8")
    	_, _ = b.WriteTo(w)
    }
    
    // RenderJSON outputs the given data as JSON
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/FilterChain.java

                            original.close();
                        }
                        StringWriter writer = new StringWriter();
                        // SimpleTemplateEngine expects to be able to mutate the map internally.
                        template.make(new LinkedHashMap<>(properties)).writeTo(writer);
                        return new StringReader(writer.toString());
                    } catch (MissingPropertyException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 10:14:55 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/gradle/GradleFileModuleAdapter.groovy

                                    version v.availableAt.version
                                }
                            }
                        }
                    }
                })
            }
            jsonBuilder.writeTo(writer)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top