Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for writerFor (0.07 seconds)

  1. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/YamlRestCompatTestPluginFuncTest.groovy

        def YAML_FACTORY = new YAMLFactory()
        def MAPPER = new ObjectMapper(YAML_FACTORY)
        def READER = MAPPER.readerFor(ObjectNode.class)
        def WRITER = MAPPER.writerFor(ObjectNode.class)
    
        def "yamlRestTestVxCompatTest does nothing when there are no tests"() {
            given:
            addSubProject(":distribution:bwc:minor") << """
            configurations { checkout }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Sep 30 16:30:48 GMT 2021
    - 16.4K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/rest/compat/RestCompatTestTransformTask.java

        private static final ObjectMapper MAPPER = new ObjectMapper(YAML_FACTORY);
        private static final ObjectReader READER = MAPPER.readerFor(ObjectNode.class);
        private static final ObjectWriter WRITER = MAPPER.writerFor(ObjectNode.class);
        private static final String REST_TEST_PREFIX = "rest-api-spec/test";
    
        private static final Map<String, String> headers = new LinkedHashMap<>();
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Sep 30 16:30:48 GMT 2021
    - 22.3K bytes
    - Click Count (0)
  3. src/bytes/reader.go

    // license that can be found in the LICENSE file.
    
    package bytes
    
    import (
    	"errors"
    	"io"
    	"unicode/utf8"
    )
    
    // A Reader implements the [io.Reader], [io.ReaderAt], [io.WriterTo], [io.Seeker],
    // [io.ByteScanner], and [io.RuneScanner] interfaces by reading from
    // a byte slice.
    // Unlike a [Buffer], a Reader is read-only and supports seeking.
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Jul 16 18:17:37 GMT 2024
    - 3.9K bytes
    - Click Count (0)
  4. src/bufio/bufio.go

    	var buf strings.Builder
    	buf.Grow(n)
    	// Copy full pieces and fragment in.
    	for _, fb := range full {
    		buf.Write(fb)
    	}
    	buf.Write(frag)
    	return buf.String(), err
    }
    
    // WriteTo implements io.WriterTo.
    // This may make multiple calls to the [Reader.Read] method of the underlying [Reader].
    // If the underlying reader supports the [Reader.WriteTo] method,
    // this calls the underlying [Reader.WriteTo] without buffering.
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Feb 06 17:28:40 GMT 2026
    - 22K bytes
    - Click Count (0)
  5. src/bytes/buffer.go

    	return b2[:i]
    }
    
    // WriteTo writes data to w until the buffer is drained or an error occurs.
    // The return value n is the number of bytes written; it always fits into an
    // int, but it is int64 to match the [io.WriterTo] interface. Any error
    // encountered during the write is also returned.
    func (b *Buffer) WriteTo(w io.Writer) (n int64, err error) {
    	b.lastRead = opInvalid
    	if nBytes := b.Len(); nBytes > 0 {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Nov 14 19:01:17 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  6. src/bufio/bufio_test.go

    		t.Fatalf("Buffered = %v; want %v", buffered, wantBuffered)
    	}
    }
    
    func BenchmarkReaderCopyOptimal(b *testing.B) {
    	// Optimal case is where the underlying reader implements io.WriterTo
    	srcBuf := bytes.NewBuffer(make([]byte, 8192))
    	src := NewReader(srcBuf)
    	dstBuf := new(bytes.Buffer)
    	dst := onlyWriter{dstBuf}
    	for i := 0; i < b.N; i++ {
    		srcBuf.Reset()
    		src.Reset(srcBuf)
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Feb 07 01:08:54 GMT 2025
    - 51.6K bytes
    - Click Count (0)
  7. api/go1.txt

    pkg compress/flate, type Reader interface, Read([]uint8) (int, error)
    pkg compress/flate, type Reader interface, ReadByte() (uint8, error)
    pkg compress/flate, type WriteError struct
    pkg compress/flate, type WriteError struct, Err error
    pkg compress/flate, type WriteError struct, Offset int64
    pkg compress/flate, type Writer struct
    pkg compress/gzip, const BestCompression ideal-int
    pkg compress/gzip, const BestSpeed ideal-int
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Click Count (0)
  8. api/go1.16.txt

    pkg archive/zip, type FileHeader struct, ModifiedTime //deprecated
    pkg archive/zip, type FileHeader struct, UncompressedSize //deprecated
    pkg compress/flate, type ReadError //deprecated
    pkg compress/flate, type WriteError //deprecated
    pkg crypto/rc4, method (*Cipher) Reset //deprecated
    pkg crypto/tls, const VersionSSL30 //deprecated
    pkg crypto/tls, method (*Config) BuildNameToCertificate //deprecated
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Click Count (0)
Back to Top