Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 633 for readelf (0.15 sec)

  1. src/mime/encodedword.go

    	// CharsetReader, if non-nil, defines a function to generate
    	// charset-conversion readers, converting from the provided
    	// charset into UTF-8.
    	// Charsets are always lower-case. utf-8, iso-8859-1 and us-ascii charsets
    	// are handled by default.
    	// One of the CharsetReader's result values must be non-nil.
    	CharsetReader func(charset string, input io.Reader) (io.Reader, error)
    }
    
    // Decode decodes an RFC 2047 encoded-word.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. src/net/http/httputil/reverseproxy_test.go

    		t.Errorf("before reading body, Trailer = %#v; want %#v", g, e)
    	}
    	if cookie := res.Cookies()[0]; cookie.Name != "flavor" {
    		t.Errorf("unexpected cookie %q", cookie.Name)
    	}
    	bodyBytes, _ := io.ReadAll(res.Body)
    	if g, e := string(bodyBytes), backendResponse; g != e {
    		t.Errorf("got body %q; expected %q", g, e)
    	}
    	if g, e := res.Trailer.Get("X-Trailer"), "trailer_value"; g != e {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  3. src/net/http/client_test.go

    		if !ok {
    			t.Fatal("handler never got /slow request, but client returned response")
    		}
    
    		_, err = io.ReadAll(res.Body)
    		res.Body.Close()
    
    		if err == nil {
    			t.Fatal("expected error from ReadAll")
    		}
    		ne, ok := err.(net.Error)
    		if !ok {
    			t.Errorf("error value from ReadAll was %T; expected some net.Error", err)
    		} else if !ne.Timeout() {
    			t.Errorf("net.Error.Timeout = false; want true")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  4. test/typeparam/chansimp.dir/a.go

    			isNaN := func(f Elem) bool { return f != f }
    			if !isNaN(v1) || !isNaN(v2) {
    				return false
    			}
    		}
    	}
    	return true
    }
    
    // ReadAll reads from c until the channel is closed or the context is
    // canceled, returning all the values read.
    func ReadAll[Elem any](ctx context.Context, c <-chan Elem) []Elem {
    	var r []Elem
    	for {
    		select {
    		case <-ctx.Done():
    			return r
    		case v, ok := <-c:
    			if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:40:40 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  5. src/internal/coverage/stringtab/stringtab.go

    	stw.frozen = true
    }
    
    // Reader is a helper for reading a string table previously
    // serialized by a Writer.Write call.
    type Reader struct {
    	r    *slicereader.Reader
    	strs []string
    }
    
    // NewReader creates a stringtab.Reader to read the contents
    // of a string table from 'r'.
    func NewReader(r *slicereader.Reader) *Reader {
    	str := &Reader{
    		r: r,
    	}
    	return str
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 12:40:42 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  6. src/net/http/httptest/example_test.go

    		io.WriteString(w, "<html><body>Hello World!</body></html>")
    	}
    
    	req := httptest.NewRequest("GET", "http://example.com/foo", nil)
    	w := httptest.NewRecorder()
    	handler(w, req)
    
    	resp := w.Result()
    	body, _ := io.ReadAll(resp.Body)
    
    	fmt.Println(resp.StatusCode)
    	fmt.Println(resp.Header.Get("Content-Type"))
    	fmt.Println(string(body))
    
    	// Output:
    	// 200
    	// text/html; charset=utf-8
    	// <html><body>Hello World!</body></html>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 2K bytes
    - Viewed (0)
  7. src/testing/fstest/testfs.go

    	// Read entire file.
    	f, err := t.fsys.Open(file)
    	if err != nil {
    		t.errorf("%s: Open: %w", file, err)
    		return
    	}
    
    	data, err := io.ReadAll(f)
    	if err != nil {
    		f.Close()
    		t.errorf("%s: Open+ReadAll: %w", file, err)
    		return
    	}
    
    	if err := f.Close(); err != nil {
    		t.errorf("%s: Close: %w", file, err)
    	}
    
    	// Check that closing twice doesn't crash.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TextUtil.java

            private final Reader reader;
    
            private int initialCapacity = 10000;
    
            private int maxAlphanumTermSize = -1;
    
            private int maxSymbolTermSize = -1;
    
            private boolean duplicateTermRemoved = false;
    
            private int[] spaceChars = { '\u0020', '\u00a0', '\u3000', '\ufffd' };
    
            public TextNormalizeContext(final Reader reader) {
                this.reader = reader;
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. maven-settings/src/main/java/org/apache/maven/settings/io/xpp3/SettingsXpp3Reader.java

            } catch (XMLStreamException e) {
                throw new XmlPullParserException(e.getMessage(), null, e);
            }
        }
    
        /**
         * @param reader a reader object.
         * @throws IOException IOException if any.
         * @throws XmlPullParserException XmlPullParserException if
         * any.
         * @return Model
         */
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Oct 20 07:44:51 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/lockedfile/lockedfile.go

    	f, err := Open(name)
    	if err != nil {
    		return nil, err
    	}
    	defer f.Close()
    
    	return io.ReadAll(f)
    }
    
    // Write opens the named file (creating it with the given permissions if needed),
    // then write-locks it and overwrites it with the given content.
    func Write(name string, content io.Reader, perm fs.FileMode) (err error) {
    	f, err := OpenFile(name, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 5.1K bytes
    - Viewed (0)
Back to top