Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for 0xffff (0.1 sec)

  1. src/unicode/utf16/utf16_test.go

    }
    
    var encodeTests = []encodeTest{
    	{[]rune{1, 2, 3, 4}, []uint16{1, 2, 3, 4}},
    	{[]rune{0xffff, 0x10000, 0x10001, 0x12345, 0x10ffff},
    		[]uint16{0xffff, 0xd800, 0xdc00, 0xd800, 0xdc01, 0xd808, 0xdf45, 0xdbff, 0xdfff}},
    	{[]rune{'a', 'b', 0xd7ff, 0xd800, 0xdfff, 0xe000, 0x110000, -1},
    		[]uint16{'a', 'b', 0xd7ff, 0xfffd, 0xfffd, 0xe000, 0xfffd, 0xfffd}},
    }
    
    func TestEncode(t *testing.T) {
    	for _, tt := range encodeTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

        val flags = buf.readShort().toInt() and 0xffff
        require(flags shr 15 != 0) { "not a response" }
    
        val responseCode = flags and 0xf
    
        if (responseCode == NXDOMAIN) {
          throw UnknownHostException("$hostname: NXDOMAIN")
        } else if (responseCode == SERVFAIL) {
          throw UnknownHostException("$hostname: SERVFAIL")
        }
    
        val questionCount = buf.readShort().toInt() and 0xffff
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. test/fixedbugs/issue66066b.go

    		println("bad f16", got)
    	}
    	if got := f8(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1); got != 0xff {
    		println("bad f8", got)
    	}
    	if got := g32(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xffffffff); got != -1 {
    		println("bad g32", got)
    	}
    	if got := g16(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xffff); got != -1 {
    		println("bad g16", got)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 17:35:29 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/runtime/netpoll_wasip1.go

    	unlock(&mtx)
    	return 0
    }
    
    const disarmed = 0xFFFF
    
    func netpollarm(pd *pollDesc, mode int) {
    	lock(&mtx)
    
    	var s subscription
    
    	s.userdata = userdata(uintptr(unsafe.Pointer(pd)))
    
    	fdReadwrite := s.u.subscriptionFdReadwrite()
    	fdReadwrite.fd = int32(pd.fd)
    
    	ridx := int(pd.user >> 16)
    	widx := int(pd.user & 0xFFFF)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. src/internal/syscall/windows/reparse_windows.go

    }
    
    // Path returns path stored in rb.
    func (rb *SymbolicLinkReparseBuffer) Path() string {
    	n1 := rb.SubstituteNameOffset / 2
    	n2 := (rb.SubstituteNameOffset + rb.SubstituteNameLength) / 2
    	return syscall.UTF16ToString((*[0xffff]uint16)(unsafe.Pointer(&rb.PathBuffer[0]))[n1:n2:n2])
    }
    
    type MountPointReparseBuffer struct {
    	// The integer that contains the offset, in bytes,
    	// of the substitute name string in the PathBuffer array,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 12 07:15:06 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. src/strconv/makeisprint.go

    	for _, v := range x {
    		if uint32(uint16(v)) != v {
    			panic("bad 32->16 conversion")
    		}
    		y = append(y, uint16(v))
    	}
    	return y
    }
    
    func main() {
    	flag.Parse()
    
    	rang, except := scan(0, 0xFFFF)
    	range16 = to16(rang)
    	except16 = to16(except)
    	range32, except32 = scan(0x10000, unicode.MaxRune)
    
    	for i := rune(0); i <= unicode.MaxRune; i++ {
    		if isPrint(i) != unicode.IsPrint(i) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:56:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. src/internal/syscall/unix/siginfo_linux.go

    	_CLD_DUMPED          = 3
    	_CLD_TRAPPED         = 4
    	_CLD_STOPPED         = 5
    	_CLD_CONTINUED       = 6
    
    	// These are the same as in syscall/syscall_linux.go.
    	core      = 0x80
    	stopped   = 0x7f
    	continued = 0xffff
    )
    
    // WaitStatus converts SiginfoChild, as filled in by the waitid syscall,
    // to syscall.WaitStatus.
    func (s *SiginfoChild) WaitStatus() (ws syscall.WaitStatus) {
    	switch s.Code {
    	case _CLD_EXITED:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 01:23:00 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. src/hash/adler32/adler32.go

    	}
    	*d = digest(byteorder.BeUint32(b[len(magic):]))
    	return nil
    }
    
    // Add p to the running checksum d.
    func update(d digest, p []byte) digest {
    	s1, s2 := uint32(d&0xffff), uint32(d>>16)
    	for len(p) > 0 {
    		var q []byte
    		if len(p) > nmax {
    			p, q = p[:nmax], p[nmax:]
    		}
    		for len(p) >= 4 {
    			s1 += uint32(p[0])
    			s2 += s1
    			s1 += uint32(p[1])
    			s2 += s1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/SocksProxy.kt

        val version = fromSource.readByte() and 0xff
        if (version != VERSION_5) throw ProtocolException("unexpected version: $version")
    
        val command = fromSource.readByte() and 0xff
    
        val reserved = fromSource.readByte() and 0xff
        if (reserved != 0) throw ProtocolException("unexpected reserved: $reserved")
    
        val addressType = fromSource.readByte() and 0xff
        val toAddress =
          when (addressType) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. src/cmd/link/internal/loong64/asm.go

    	if isRequestingLowPageBits(t) {
    		// corresponding immediate field is 12 bits wide
    		return tgt & 0xfff
    	}
    
    	pageDelta := (tgt >> 12) - (pc >> 12)
    	if tgt&0xfff >= 0x800 {
    		// adjust for sign-extended addition of the low bits
    		pageDelta += 1
    	}
    	// corresponding immediate field is 20 bits wide
    	return pageDelta & 0xfffff
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:26:07 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top