Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for readPtr (0.17 sec)

  1. src/cmd/compile/internal/ssa/debug.go

    	}
    
    	// Re-read list, translating its address from block/value ID to PC.
    	for i := 0; i < len(list); {
    		begin := getPC(decodeValue(ctxt, readPtr(ctxt, list[i:])))
    		end := getPC(decodeValue(ctxt, readPtr(ctxt, list[i+ctxt.Arch.PtrSize:])))
    
    		// Horrible hack. If a range contains only zero-width
    		// instructions, e.g. an Arg, and it's at the beginning of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  2. src/os/os_test.go

    		t.Helper()
    		fi, err := d.Readdir(n)
    		if err != wantErr {
    			t.Fatalf("Readdir of %d got error %v, want %v", n, err, wantErr)
    		}
    		if g, e := len(fi), want; g != e {
    			t.Errorf("Readdir of %d got %d files, want %d", n, g, e)
    		}
    	}
    
    	readDirExpect := func(n, want int, wantErr error) {
    		t.Helper()
    		de, err := d.ReadDir(n)
    		if err != wantErr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  3. pkg/kubelet/server/server_test.go

    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		t.Errorf("expected status code %d, got %d", http.StatusOK, resp.StatusCode)
    	}
    	body, readErr := io.ReadAll(resp.Body)
    	if readErr != nil {
    		// copying the response body did not work
    		t.Fatalf("Cannot copy resp: %#v", readErr)
    	}
    	result := string(body)
    	if !strings.Contains(result, "ok") {
    		t.Errorf("expected body contains ok, got %s", result)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/CopyUtil.java

         *
         * @param reader
         *            リーダー
         * @return ラップされたリーダー
         */
        protected static Reader wrap(final Reader reader) {
            if (reader instanceof BufferedReader) {
                return reader;
            }
            if (reader instanceof StringReader) {
                return reader;
            }
            return new BufferedReader(reader, DEFAULT_BUF_SIZE);
        }
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  5. src/strings/strings_test.go

    			}
    		}
    		if res != s {
    			t.Errorf("Reader(%q).ReadRune() produced %q", s, res)
    		}
    	}
    }
    
    var UnreadRuneErrorTests = []struct {
    	name string
    	f    func(*Reader)
    }{
    	{"Read", func(r *Reader) { r.Read([]byte{0}) }},
    	{"ReadByte", func(r *Reader) { r.ReadByte() }},
    	{"UnreadRune", func(r *Reader) { r.UnreadRune() }},
    	{"Seek", func(r *Reader) { r.Seek(0, io.SeekCurrent) }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  6. src/net/http/request.go

    }
    
    var textprotoReaderPool sync.Pool
    
    func newTextprotoReader(br *bufio.Reader) *textproto.Reader {
    	if v := textprotoReaderPool.Get(); v != nil {
    		tr := v.(*textproto.Reader)
    		tr.R = br
    		return tr
    	}
    	return textproto.NewReader(br)
    }
    
    func putTextprotoReader(r *textproto.Reader) {
    	r.R = nil
    	textprotoReaderPool.Put(r)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    		// to verify for legacy version.
    		if formatLegacy {
    			// We only need this code if we are moving
    			// from `xl.json` to `xl.meta`, we can avoid
    			// one extra readdir operation here for all
    			// new deployments.
    			entries, err := readDir(currentDataPath)
    			if err != nil && err != errFileNotFound {
    				return res, osErrToFileErr(err)
    			}
    			for _, entry := range entries {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  8. src/go/build/build.go

    	if !found {
    		return "", false
    	}
    	return filepath.ToSlash(after), true
    }
    
    // readDir calls ctxt.ReadDir (if not nil) or else os.ReadDir.
    func (ctxt *Context) readDir(path string) ([]fs.DirEntry, error) {
    	// TODO: add a fs.DirEntry version of Context.ReadDir
    	if f := ctxt.ReadDir; f != nil {
    		fis, err := f(path)
    		if err != nil {
    			return nil, err
    		}
    		des := make([]fs.DirEntry, len(fis))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/lib.go

    	"runtime/race",
    	"runtime/race/internal/amd64v1",
    	"runtime/race/internal/amd64v3",
    	"runtime/msan",
    	"runtime/asan",
    }
    
    func ldhostobj(ld func(*Link, *bio.Reader, string, int64, string), headType objabi.HeadType, f *bio.Reader, pkg string, length int64, pn string, file string) *Hostobj {
    	isinternal := false
    	for _, intpkg := range internalpkg {
    		if pkg == intpkg {
    			isinternal = true
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2_gen.go

    package cmd
    
    // Code generated by github.com/tinylib/msgp DO NOT EDIT.
    
    import (
    	"github.com/tinylib/msgp/msgp"
    )
    
    // DecodeMsg implements msgp.Decodable
    func (z *ChecksumAlgo) DecodeMsg(dc *msgp.Reader) (err error) {
    	{
    		var zb0001 uint8
    		zb0001, err = dc.ReadUint8()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = ChecksumAlgo(zb0001)
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 53.8K bytes
    - Viewed (0)
Back to top