Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for namebuf (0.3 sec)

  1. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

          writeShort(0) // additional
    
          val nameBuf = Buffer()
          val labels = host.split('.').dropLastWhile { it.isEmpty() }
          for (label in labels) {
            val utf8ByteCount = label.utf8Size()
            require(utf8ByteCount == label.length.toLong()) { "non-ascii hostname: $host" }
            nameBuf.writeByte(utf8ByteCount.toInt())
            nameBuf.writeUtf8(label)
          }
          nameBuf.writeByte(0) // end
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. cmd/os-dirent_namelen_linux.go

    	nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0]))
    	const nameBufLen = uint16(len(nameBuf))
    	limit := dirent.Reclen - fixedHdr
    	if limit > nameBufLen {
    		limit = nameBufLen
    	}
    	// Avoid bugs in long file names
    	// https://github.com/golang/tools/commit/5f9a5413737ba4b4f692214aebee582b47c8be74
    	nameLen := bytes.IndexByte(nameBuf[:limit], 0)
    	if nameLen < 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  3. cmd/os_unix.go

    		// files and directories.
    		typ = unexpectedFileMode
    	}
    
    	nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0]))
    	nameLen, err := direntNamlen(dirent)
    	if err != nil {
    		return consumed, nil, typ, err
    	}
    
    	return consumed, nameBuf[:nameLen], typ, nil
    }
    
    // readDirFn applies the fn() function on each entries at dirPath, doesn't recurse into
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/debug/dwarf/typeunit.go

    	name  string // Name of .debug_type section.
    	cache Type   // Cache the type, nil to start.
    }
    
    // Parse a .debug_types section.
    func (d *Data) parseTypes(name string, types []byte) error {
    	b := makeBuf(d, unknownFormat{}, name, 0, types)
    	for len(b.data) > 0 {
    		base := b.off
    		n, dwarf64 := b.unitLength()
    		if n != Offset(uint32(n)) {
    			b.error("type unit length overflow")
    			return b.err
    		}
    		hdroff := b.off
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. src/crypto/x509/oid.go

    					bigVal = bigVal.Sub(bigVal, big.NewInt(80))
    				}
    				numBuf = bigVal.Append(numBuf, 10)
    				b.Write(numBuf)
    				numBuf = numBuf[:0]
    				val = 0
    				start = i + 1
    				overflow = false
    			}
    			continue
    		}
    		val <<= bitsPerByte
    		val |= uint64(curVal)
    		if valEnd {
    			if start == 0 {
    				if val < 80 {
    					b.Write(strconv.AppendUint(numBuf, val/40, 10))
    					b.WriteByte('.')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/PrecompiledScriptPluginAccessorsIntegrationTest.kt

                            // Using internal class to verify https://github.com/gradle/gradle/issues/17619
                            public static class Implementation implements ${nameOf<Plugin<*>>()}<${nameOf<Project>()}> {
                                @Override public void apply(${nameOf<Project>()} target) {}
                            }
                        }
                        """
                    )
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 07:16:19 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  7. src/debug/dwarf/unit.go

    	// Count units.
    	nunit := 0
    	b := makeBuf(d, unknownFormat{}, "info", 0, d.info)
    	for len(b.data) > 0 {
    		len, _ := b.unitLength()
    		if len != Offset(uint32(len)) {
    			b.error("unit length overflow")
    			break
    		}
    		b.skip(int(len))
    		if len > 0 {
    			nunit++
    		}
    	}
    	if b.err != nil {
    		return nil, b.err
    	}
    
    	// Again, this time writing them down.
    	b = makeBuf(d, unknownFormat{}, "info", 0, d.info)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 21 17:14:08 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  8. src/reflect/export_test.go

    	}
    	m := ut.Methods()[0]
    	mname := t.(*rtype).nameOff(m.Name)
    	if *mname.DataChecked(0, "name flag field")&(1<<2) == 0 {
    		panic("method name does not have pkgPath *string")
    	}
    	return mname.Bytes
    }
    
    type OtherPkgFields struct {
    	OtherExported   int
    	otherUnexported int
    }
    
    func IsExported(t Type) bool {
    	typ := t.(*rtype)
    	n := typ.nameOff(typ.t.Str)
    	return n.IsExported()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/runtime/symtabinl.go

    	_ "unsafe" // for linkname
    )
    
    // inlinedCall is the encoding of entries in the FUNCDATA_InlTree table.
    type inlinedCall struct {
    	funcID    abi.FuncID // type of the called function
    	_         [3]byte
    	nameOff   int32 // offset into pclntab for name of called function
    	parentPc  int32 // position of an instruction whose source position is the call site (offset from entry)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/DependencyState.java

            String extension = avs.getExtension() != null ? avs.getExtension() : avs.getType();
            return new DefaultIvyArtifactName(
                nameOf(target),
                avs.getType(),
                extension,
                avs.getClassifier()
            );
        }
    
        private static String nameOf(ComponentSelector target) {
            if (target instanceof ModuleComponentSelector) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8.7K bytes
    - Viewed (0)
Back to top