Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for readerFor (0.24 seconds)

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

        def transformTask  = ":yamlRestTestV${compatibleVersion}CompatTransform"
        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") << """
    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 YAMLFactory YAML_FACTORY = new YAMLFactory();
        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";
    
    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. internal/ringbuffer/ring_buffer_test.go

    	// Reader
    	var readErr error
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		defer rb.CloseWithError(readErr)
    		readRng := rand.New(rand.NewSource(1))
    		buf := make([]byte, 64<<10)
    		for {
    			// Read
    			n, err := rb.Read(buf[:readRng.Intn(len(buf))])
    			readBytes += n
    			read.Write(buf[:n])
    			if err != nil {
    				readErr = err
    				break
    			}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  4. internal/ringbuffer/ring_buffer.go

    	if len(p) == 0 {
    		return 0, r.readErr(false)
    	}
    
    	r.mu.Lock()
    	defer r.mu.Unlock()
    	if err := r.readErr(true); err != nil {
    		return 0, err
    	}
    
    	r.wg.Add(1)
    	defer r.wg.Done()
    	n, err = r.read(p)
    	for err == ErrIsEmpty && r.block {
    		r.writeCond.Wait()
    		if err = r.readErr(true); err != nil {
    			break
    		}
    		n, err = r.read(p)
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  5. src/bufio/bufio.go

    func (b *Reader) Read(p []byte) (n int, err error) {
    	n = len(p)
    	if n == 0 {
    		if b.Buffered() > 0 {
    			return 0, nil
    		}
    		return 0, b.readErr()
    	}
    	if b.r == b.w {
    		if b.err != nil {
    			return 0, b.readErr()
    		}
    		if len(p) >= len(b.buf) {
    			// Large read, empty buffer.
    			// Read directly into p to avoid copy.
    			n, b.err = b.rd.Read(p)
    			if n < 0 {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Feb 06 17:28:40 GMT 2026
    - 22K bytes
    - Click Count (0)
  6. cmd/metacache-stream_test.go

    	if err != io.EOF {
    		t.Fatal(err)
    	}
    }
    
    func Test_metacacheReader_readAll(t *testing.T) {
    	r := loadMetacacheSample(t)
    	defer r.Close()
    	var readErr error
    	objs := make(chan metaCacheEntry, 1)
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		readErr = r.readAll(t.Context(), objs)
    		wg.Done()
    	}()
    	want := loadMetacacheSampleNames
    	i := 0
    	for entry := range objs {
    		if entry.name != want[i] {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 15K bytes
    - Click Count (0)
  7. cmd/erasure-healing.go

    	return found < notFound && found > 0
    }
    
    func danglingMetaErrsCount(cerrs []error) (notFoundCount int, nonActionableCount int) {
    	for _, readErr := range cerrs {
    		if readErr == nil {
    			continue
    		}
    		switch {
    		case errors.Is(readErr, errFileNotFound) || errors.Is(readErr, errFileVersionNotFound):
    			notFoundCount++
    		default:
    			// All other errors are non-actionable
    			nonActionableCount++
    		}
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 34.7K bytes
    - Click Count (0)
  8. internal/s3select/jstream/decoder.go

    	if len(context) > 0 {
    		err.context = context[0]
    	}
    	err.atChar = d.cur()
    	err.pos[0] = d.lineNo + 1
    	err.pos[1] = int(d.pos - d.lineStart)
    	err.readerErr = d.readerErr
    	return err
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  9. cmd/object_api_suite_test.go

    }
    
    // Tests validate PutObject without prefix.
    func testPutObject(obj ObjectLayer, instanceType string, t TestErrHandler) {
    	content := []byte("testcontent")
    	length := int64(len(content))
    	readerEOF := newTestReaderEOF(content)
    	readerNoEOF := newTestReaderNoEOF(content)
    	err := obj.MakeBucket(context.Background(), "bucket", MakeBucketOptions{})
    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 34.5K bytes
    - Click Count (0)
  10. doc/asm.html

    Assembly can refer to the size of this struct
    as <code>reader__size</code> and the offsets of the two fields
    as <code>reader_buf</code> and <code>reader_r</code>.
    Hence, if register <code>R1</code> contains a pointer to
    a <code>reader</code>, assembly can reference the <code>r</code> field
    as <code>reader_r(R1)</code>.
    </p>
    
    <p>
    If any of these <code>#define</code> names are ambiguous (for example,
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Nov 14 19:09:46 GMT 2025
    - 36.5K bytes
    - Click Count (0)
Back to Top