Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for msglen (0.18 sec)

  1. src/syscall/route_bsd.go

    	type linkLayerAddr struct {
    		Type byte
    		Nlen byte
    		Alen byte
    		Slen byte
    	}
    	lla := (*linkLayerAddr)(unsafe.Pointer(&b[0]))
    	l := 4 + int(lla.Nlen) + int(lla.Alen) + int(lla.Slen)
    	if len(b) < l {
    		return nil, 0, EINVAL
    	}
    	b = b[4:]
    	sa := &SockaddrDatalink{Type: lla.Type, Nlen: lla.Nlen, Alen: lla.Alen, Slen: lla.Slen}
    	for i := 0; len(sa.Data) > i && i < l-4; i++ {
    		sa.Data[i] = int8(b[i])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/syscall/sockcmsg_unix.go

    //go:build unix
    
    // Socket control messages
    
    package syscall
    
    import (
    	"unsafe"
    )
    
    // CmsgLen returns the value to store in the Len field of the [Cmsghdr]
    // structure, taking into account any necessary alignment.
    func CmsgLen(datalen int) int {
    	return cmsgAlignOf(SizeofCmsghdr) + datalen
    }
    
    // CmsgSpace returns the number of bytes an ancillary element with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_zos.go

    // authentication.
    func UnixCredentials(ucred *Ucred) []byte {
    	b := make([]byte, CmsgSpace(SizeofUcred))
    	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
    	h.Level = SOL_SOCKET
    	h.Type = SCM_CREDENTIALS
    	h.SetLen(CmsgLen(SizeofUcred))
    	*(*Ucred)(h.data(0)) = *ucred
    	return b
    }
    
    // ParseUnixCredentials decodes a socket control message that contains
    // credentials in a Ucred structure. To receive such a message, the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. src/internal/bytealg/bytealg.go

    	offsetS390xHasVX = unsafe.Offsetof(cpu.S390X.HasVX)
    
    	offsetPPC64HasPOWER9 = unsafe.Offsetof(cpu.PPC64.IsPOWER9)
    )
    
    // MaxLen is the maximum length of the string to be searched for (argument b) in Index.
    // If MaxLen is not 0, make sure MaxLen >= 4.
    var MaxLen int
    
    // PrimeRK is the prime base used in Rabin-Karp algorithm.
    const PrimeRK = 16777619
    
    // HashStr returns the hash and the appropriate multiplicative
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. src/reflect/makefunc.go

    	// makeFuncImpl contains a stack map for use by the runtime
    	_, _, abid := funcLayout(ftyp, nil)
    
    	impl := &makeFuncImpl{
    		makeFuncCtxt: makeFuncCtxt{
    			fn:      code,
    			stack:   abid.stackPtrs,
    			argLen:  abid.stackCallArgsSize,
    			regPtrs: abid.inRegPtrs,
    		},
    		ftyp: ftyp,
    		fn:   fn,
    	}
    
    	return Value{t, unsafe.Pointer(impl), flag(Func)}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:20:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. src/go/ast/commentmap.go

    func summary(list []*CommentGroup) string {
    	const maxLen = 40
    	var buf bytes.Buffer
    
    	// collect comments text
    loop:
    	for _, group := range list {
    		// Note: CommentGroup.Text() does too much work for what we
    		//       need and would only replace this innermost loop.
    		//       Just do it explicitly.
    		for _, comment := range group.List {
    			if buf.Len() >= maxLen {
    				break loop
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s

    DATA ·poly1305Mask<>+0x08(SB)/8, $0x0FFFFFFC0FFFFFFC
    GLOBL ·poly1305Mask<>(SB), RODATA, $16
    
    // func update(state *[7]uint64, msg []byte)
    TEXT ·update(SB), $0-32
    	MOVD state+0(FP), R3
    	MOVD msg_base+8(FP), R4
    	MOVD msg_len+16(FP), R5
    
    	MOVD 0(R3), R8   // h0
    	MOVD 8(R3), R9   // h1
    	MOVD 16(R3), R10 // h2
    	MOVD 24(R3), R11 // r0
    	MOVD 32(R3), R12 // r1
    
    	CMP R5, $16
    	BLT bytes_between_0_and_15
    
    loop:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. src/runtime/os_openbsd_syscall2.go

    	if old != nil {
    		*old = r
    	}
    }
    
    func pipe2(flags int32) (r, w int32, errno int32)
    
    //go:noescape
    func setitimer(mode int32, new, old *itimerval)
    
    //go:noescape
    func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    
    // mmap calls the mmap system call. It is implemented in assembly.
    // We only pass the lower 32 bits of file offset to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. src/internal/stringslite/strings.go

    	switch {
    	case n == 0:
    		return 0
    	case n == 1:
    		return IndexByte(s, substr[0])
    	case n == len(s):
    		if substr == s {
    			return 0
    		}
    		return -1
    	case n > len(s):
    		return -1
    	case n <= bytealg.MaxLen:
    		// Use brute force when s and substr both are small
    		if len(s) <= bytealg.MaxBruteForce {
    			return bytealg.IndexString(s, substr)
    		}
    		c0 := substr[0]
    		c1 := substr[1]
    		i := 0
    		t := len(s) - n + 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 01:23:42 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/runtime/defs_freebsd_amd64.go

    	mc_es            uint16
    	mc_ds            uint16
    	mc_err           uint64
    	mc_rip           uint64
    	mc_cs            uint64
    	mc_rflags        uint64
    	mc_rsp           uint64
    	mc_ss            uint64
    	mc_len           uint64
    	mc_fpformat      uint64
    	mc_ownedfp       uint64
    	mc_fpstate       [64]uint64
    	mc_fsbase        uint64
    	mc_gsbase        uint64
    	mc_xfpustate     uint64
    	mc_xfpustate_len uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top