Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 185 for vbuf (0.1 sec)

  1. src/encoding/hex/hex.go

    			// offset in hex.
    			h.buf[0] = byte(h.n >> 24)
    			h.buf[1] = byte(h.n >> 16)
    			h.buf[2] = byte(h.n >> 8)
    			h.buf[3] = byte(h.n)
    			Encode(h.buf[4:], h.buf[:4])
    			h.buf[12] = ' '
    			h.buf[13] = ' '
    			_, err = h.w.Write(h.buf[4:])
    			if err != nil {
    				return
    			}
    		}
    		Encode(h.buf[:], data[i:i+1])
    		h.buf[2] = ' '
    		l := 3
    		if h.used == 7 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:30:23 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. src/compress/gzip/gzip.go

    			le.PutUint32(z.buf[4:8], uint32(z.ModTime.Unix()))
    		}
    		if z.level == BestCompression {
    			z.buf[8] = 2
    		} else if z.level == BestSpeed {
    			z.buf[8] = 4
    		}
    		z.buf[9] = z.OS
    		_, z.err = z.w.Write(z.buf[:10])
    		if z.err != nil {
    			return 0, z.err
    		}
    		if z.Extra != nil {
    			z.err = z.writeBytes(z.Extra)
    			if z.err != nil {
    				return 0, z.err
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. src/runtime/pprof/protomem_test.go

    	const expectedLocation = "runtime/pprof.nonRecursiveGenericAllocFunction[go.shape.struct {},go.shape.struct { runtime/pprof.buf [128]uint8 }];runtime/pprof.nonRecursiveGenericAllocFunction[go.shape.struct { runtime/pprof.buf [128]uint8 },go.shape.struct {}];runtime/pprof.storeAlloc"...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. src/time/zoneinfo_read.go

    		//	46	name[namelen]
    		//	46+namelen+xlen+fclen - next header
    		//
    		if get4(buf) != zcheader {
    			break
    		}
    		meth := get2(buf[10:])
    		size := get4(buf[24:])
    		namelen := get2(buf[28:])
    		xlen := get2(buf[30:])
    		fclen := get2(buf[32:])
    		off := get4(buf[42:])
    		zname := buf[46 : 46+namelen]
    		buf = buf[46+namelen+xlen+fclen:]
    		if string(zname) != name {
    			continue
    		}
    		if meth != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. src/hash/maphash/maphash_purego.go

    	"internal/byteorder"
    	"math/bits"
    )
    
    func rthash(buf []byte, seed uint64) uint64 {
    	if len(buf) == 0 {
    		return seed
    	}
    	return wyhash(buf, seed, uint64(len(buf)))
    }
    
    func rthashString(s string, state uint64) uint64 {
    	return rthash([]byte(s), state)
    }
    
    func randUint64() uint64 {
    	buf := make([]byte, 8)
    	_, _ = rand.Read(buf)
    	return byteorder.LeUint64(buf)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. internal/ioutil/ioutil.go

    	}
    
    	var written int64
    	for {
    		buf := alignedBuf
    		if totalSize > 0 {
    			remaining := totalSize - written
    			if remaining < int64(len(buf)) {
    				buf = buf[:remaining]
    			}
    		}
    
    		nr, err := io.ReadFull(r, buf)
    		eof := errors.Is(err, io.EOF) || errors.Is(err, io.ErrUnexpectedEOF)
    		if err != nil && !eof {
    			return written, err
    		}
    
    		buf = buf[:nr]
    		var (
    			n  int
    			un int
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. src/internal/filepathlite/path.go

    type lazybuf struct {
    	path       string
    	buf        []byte
    	w          int
    	volAndPath string
    	volLen     int
    }
    
    func (b *lazybuf) index(i int) byte {
    	if b.buf != nil {
    		return b.buf[i]
    	}
    	return b.path[i]
    }
    
    func (b *lazybuf) append(c byte) {
    	if b.buf == nil {
    		if b.w < len(b.path) && b.path[b.w] == c {
    			b.w++
    			return
    		}
    		b.buf = make([]byte, len(b.path))
    		copy(b.buf, b.path[:b.w])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. docs/debugging/xl-meta/main.go

    	if err != nil {
    		return x, buf, err
    	}
    	x.metaVer, buf, err = msgp.ReadUintBytes(buf)
    	if err != nil {
    		return x, buf, err
    	}
    	if x.headerVer > xlHeaderVersion {
    		return x, buf, fmt.Errorf("decodeXLHeaders: Unknown xl header version %d", x.headerVer)
    	}
    	if x.metaVer > xlMetaVersion {
    		return x, buf, fmt.Errorf("decodeXLHeaders: Unknown xl meta version %d", x.metaVer)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/bug/bug.go

    	if len(args) > 0 {
    		base.Fatalf("go: bug takes no arguments")
    	}
    	work.BuildInit()
    
    	var buf strings.Builder
    	buf.WriteString(bugHeader)
    	printGoVersion(&buf)
    	buf.WriteString("### Does this issue reproduce with the latest release?\n\n\n")
    	printEnvDetails(&buf)
    	buf.WriteString(bugFooter)
    
    	body := buf.String()
    	url := "https://github.com/golang/go/issues/new?body=" + urlpkg.QueryEscape(body)
    	if !web.OpenBrowser(url) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/object.go

    		buf.WriteString("type")
    		if isTypeParam(typ) {
    			buf.WriteString(" parameter")
    		}
    
    	case *Var:
    		if obj.isField {
    			buf.WriteString("field")
    		} else {
    			buf.WriteString("var")
    		}
    
    	case *Func:
    		buf.WriteString("func ")
    		writeFuncName(buf, obj, qf)
    		if typ != nil {
    			WriteSignature(buf, typ.(*Signature), qf)
    		}
    		return
    
    	case *Label:
    		buf.WriteString("label")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top