Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 110 for bytereg (0.33 sec)

  1. src/encoding/gob/encode.go

    	if x <= 0x7F {
    		state.b.writeByte(uint8(x))
    		return
    	}
    
    	binary.BigEndian.PutUint64(state.buf[1:], x)
    	bc := bits.LeadingZeros64(x) >> 3      // 8 - bytelen(x)
    	state.buf[bc] = uint8(bc - uint64Size) // and then we subtract 8 to get -bytelen(x)
    
    	state.b.Write(state.buf[bc : uint64Size+1])
    }
    
    // encodeInt writes an encoded signed integer to state.w.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/go/build/deps_test.go

    	internal/abi,
    	internal/chacha8rand,
    	internal/coverage/rtcov,
    	internal/cpu,
    	internal/goarch,
    	internal/godebugs,
    	internal/goexperiment,
    	internal/goos,
    	internal/profilerecord,
    	math/bits
    	< internal/bytealg
    	< internal/stringslite
    	< internal/itoa
    	< internal/unsafeheader
    	< runtime/internal/sys
    	< internal/runtime/syscall
    	< internal/runtime/atomic
    	< internal/runtime/exithook
    	< runtime/internal/math
    	< runtime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/admission/v1beta1/generated.pb.go

    			}
    			var byteLen int
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return io.ErrUnexpectedEOF
    				}
    				b := dAtA[iNdEx]
    				iNdEx++
    				byteLen |= int(b&0x7F) << shift
    				if b < 0x80 {
    					break
    				}
    			}
    			if byteLen < 0 {
    				return ErrInvalidLengthGenerated
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  4. src/math/big/int_test.go

    			}
    
    			// Perfectly sized buffer.
    			byteLen := (x.BitLen() + 7) / 8
    			buf := make([]byte, byteLen)
    			checkResult(t, x.FillBytes(buf), x)
    
    			// Way larger, checking all bytes get zeroed.
    			buf = make([]byte, 100)
    			for i := range buf {
    				buf[i] = 0xff
    			}
    			checkResult(t, x.FillBytes(buf), x)
    
    			// Too small.
    			if byteLen > 0 {
    				buf = make([]byte, byteLen-1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/admission/v1/generated.pb.go

    			}
    			var byteLen int
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return io.ErrUnexpectedEOF
    				}
    				b := dAtA[iNdEx]
    				iNdEx++
    				byteLen |= int(b&0x7F) << shift
    				if b < 0x80 {
    					break
    				}
    			}
    			if byteLen < 0 {
    				return ErrInvalidLengthGenerated
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 46K bytes
    - Viewed (0)
  6. src/archive/tar/writer.go

    	}
    	tw.hdr = *hdr // Shallow copy of Header
    
    	// Avoid usage of the legacy TypeRegA flag, and automatically promote
    	// it to use TypeReg or TypeDir.
    	if tw.hdr.Typeflag == TypeRegA {
    		if strings.HasSuffix(tw.hdr.Name, "/") {
    			tw.hdr.Typeflag = TypeDir
    		} else {
    			tw.hdr.Typeflag = TypeReg
    		}
    	}
    
    	// Round ModTime and ignore AccessTime and ChangeTime unless
    	// the format is explicitly chosen.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. src/net/dnsclient_unix.go

    //	Could potentially handle many outstanding lookups faster.
    //	Random UDP source port (net.Dial should do that for us).
    //	Random request IDs.
    
    package net
    
    import (
    	"context"
    	"errors"
    	"internal/bytealg"
    	"internal/itoa"
    	"io"
    	"os"
    	"runtime"
    	"sync"
    	"sync/atomic"
    	"time"
    
    	"golang.org/x/net/dns/dnsmessage"
    )
    
    const (
    	// to be used as a useTCP parameter to exchange
    	useTCPOnly  = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  8. src/runtime/os_plan9.go

    			panicmem()
    		}
    		throw(note)
    	case _SIGINTDIV:
    		panicdivide()
    	case _SIGFLOAT:
    		panicfloat()
    	default:
    		panic(errorString(note))
    	}
    }
    
    // indexNoFloat is bytealg.IndexString but safe to use in a note
    // handler.
    func indexNoFloat(s, t string) int {
    	if len(t) == 0 {
    		return 0
    	}
    	for i := 0; i < len(s); i++ {
    		if s[i] == t[0] && stringslite.HasPrefix(s[i:], t) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. src/net/netip/netip.go

    // prefix).
    //
    // Compared to the [net.IP] type, [Addr] type takes less memory, is immutable,
    // and is comparable (supports == and being a map key).
    package netip
    
    import (
    	"cmp"
    	"errors"
    	"internal/bytealg"
    	"internal/byteorder"
    	"internal/itoa"
    	"math"
    	"strconv"
    	"unique"
    )
    
    // Sizes: (64-bit)
    //   net.IP:     24 byte slice header + {4, 16} = 28 to 40 bytes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  10. src/runtime/slice.go

    		*(*byte)(toPtr) = *(*byte)(fromPtr) // known to be a byte pointer
    	} else {
    		memmove(toPtr, fromPtr, size)
    	}
    	return n
    }
    
    //go:linkname bytealg_MakeNoZero internal/bytealg.MakeNoZero
    func bytealg_MakeNoZero(len int) []byte {
    	if uintptr(len) > maxAlloc {
    		panicmakeslicelen()
    	}
    	cap := roundupsize(uintptr(len), true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top