- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 48 for addBytes (0.11 sec)
-
src/cmd/link/internal/loader/loader_test.go
r2.SetSym(ts2) r3, _ := sb2.AddRel(objabi.R_USETYPE) r3.SetOff(7) r3.SetSiz(1) r3.SetSym(ts3) // Add some data to the symbols. d1 := []byte{1, 2, 3} d2 := []byte{4, 5, 6, 7} sb1.AddBytes(d1) sb2.AddBytes(d2) // Now invoke the usual loader interfaces to make sure // we're getting the right things back for these symbols. // First relocations... expRel := [][]Reloc{{r1, r2}, {r3}}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:09 UTC 2024 - 12K bytes - Viewed (0) -
src/crypto/x509/x509.go
b.AddASN1(cryptobyte_asn1.Tag(2).ContextSpecific(), func(b *cryptobyte.Builder) { b.AddBytes([]byte(name)) }) }) } for _, ipNet := range ips { b.AddASN1(cryptobyte_asn1.SEQUENCE, func(b *cryptobyte.Builder) { b.AddASN1(cryptobyte_asn1.Tag(7).ContextSpecific(), func(b *cryptobyte.Builder) { b.AddBytes(ipAndMask(ipNet)) }) }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:20:15 UTC 2024 - 82K bytes - Viewed (0) -
src/cmd/link/internal/ld/dwarf.go
ds := loader.Sym(s.(dwSym)) dsu := c.ldr.MakeSymbolUpdater(ds) dsu.AddUintXX(c.arch, uint64(i), size) } func (c dwctxt) AddBytes(s dwarf.Sym, b []byte) { ds := loader.Sym(s.(dwSym)) dsu := c.ldr.MakeSymbolUpdater(ds) dsu.AddBytes(b) } func (c dwctxt) AddString(s dwarf.Sym, v string) { ds := loader.Sym(s.(dwSym)) dsu := c.ldr.MakeSymbolUpdater(ds) dsu.Addstring(v) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 72.4K bytes - Viewed (0) -
src/cmd/internal/obj/dwarf.go
} func (c dwCtxt) AddUint16(s dwarf.Sym, i uint16) { c.AddInt(s, 2, int64(i)) } func (c dwCtxt) AddUint8(s dwarf.Sym, i uint8) { b := []byte{byte(i)} c.AddBytes(s, b) } func (c dwCtxt) AddBytes(s dwarf.Sym, b []byte) { ls := s.(*LSym) ls.WriteBytes(c.Link, ls.Size, b) } func (c dwCtxt) AddString(s dwarf.Sym, v string) { ls := s.(*LSym) ls.WriteString(c.Link, ls.Size, len(v), v)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 20:40:28 UTC 2023 - 22K bytes - Viewed (0) -
src/cmd/link/internal/loader/symbolbuilder.go
func (sb *SymbolBuilder) SetNotInSymbolTable(value bool) { sb.l.SetAttrNotInSymbolTable(sb.symIdx, value) } func (sb *SymbolBuilder) SetSect(sect *sym.Section) { sb.l.SetSymSect(sb.symIdx, sect) } func (sb *SymbolBuilder) AddBytes(data []byte) { if sb.kind == 0 { sb.kind = sym.SDATA } sb.data = append(sb.data, data...) sb.size = int64(len(sb.data)) } func (sb *SymbolBuilder) Relocs() Relocs {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 15:25:19 UTC 2023 - 13.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/config.go
// post start hook is moved to generic apiserver. b := cryptobyte.NewBuilder(nil) b.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) { b.AddBytes([]byte(hostname)) }) b.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) { b.AddBytes([]byte("kube-apiserver")) }) hashData, err := b.Bytes() if err != nil { klog.Fatalf("error building hash data for apiserver identity: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 47.7K bytes - Viewed (0) -
src/cmd/link/internal/ld/elf.go
// descsz s.AddUint32(ctxt.Arch, uint32(len(desc))) // tag s.AddUint32(ctxt.Arch, tag) // name + padding s.AddBytes(ELF_NOTE_GO_NAME) for len(s.Data())%4 != 0 { s.AddUint8(0) } // desc + padding s.AddBytes(desc) for len(s.Data())%4 != 0 { s.AddUint8(0) } s.SetSize(int64(len(s.Data()))) s.SetAlign(4) } func (ctxt *Link) doelf() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 13:29:54 UTC 2024 - 63.6K bytes - Viewed (0) -
src/crypto/ecdsa/ecdsa.go
} if len(bytes) == 0 { b.SetError(errors.New("invalid integer")) return } b.AddASN1(asn1.INTEGER, func(c *cryptobyte.Builder) { if bytes[0]&0x80 != 0 { c.AddUint8(0) } c.AddBytes(bytes) }) } // inverse sets kInv to the inverse of k modulo the order of the curve. func inverse[Point nistPoint[Point]](c *nistCurve[Point], kInv, k *bigmod.Nat) { if c.curve.Params().Name == "P-256" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 20.4K bytes - Viewed (0) -
src/cmd/link/internal/ld/xcoff.go
// TODO(aix): Find a way to detect variables imported by cgo. lds.smclas = XMC_RW } f.loaderSymbols = append(f.loaderSymbols, lds) // Relocation to retrieve the external address sb.AddBytes(make([]byte, 8)) r, _ := sb.AddRel(objabi.R_ADDR) r.SetSym(extsym.Sym()) r.SetSiz(uint8(ctxt.Arch.PtrSize)) // TODO: maybe this could be // sb.SetSize(0) // sb.SetData(nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 01 19:58:23 UTC 2023 - 51.8K bytes - Viewed (0) -
src/net/http/h2_bundle.go
n.prev = nil } else { n.next = parent.kids n.prev = nil if n.next != nil { n.next.prev = n } parent.kids = n } } func (n *http2priorityNode) addBytes(b int64) { n.bytes += b for ; n != nil; n = n.parent { n.subtreeBytes += b } } // walkReadyInOrder iterates over the tree in priority order, calling f for each node
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 364.1K bytes - Viewed (0)