- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for addData (0.1 sec)
-
pkg/proxy/util/nfacct/handler.go
type handler interface { newRequest(cmd int, flags uint16) request } // request is an injectable interface representing a netlink request. type request interface { Serialize() []byte AddData(data nl.NetlinkRequestData) AddRawData(data []byte) Execute(sockType int, resType uint16) ([][]byte, error) } // netlinkHandler is an implementation of the handler interface. It maintains a netlink socket
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 2.6K bytes - Viewed (0) -
pkg/proxy/util/nfacct/nfacct_linux.go
if name == "" { return ErrEmptyName } if len(name) > MaxLength { return ErrNameExceedsMaxLength } req := r.handler.newRequest(cmdNew, unix.NLM_F_REQUEST|unix.NLM_F_CREATE|unix.NLM_F_ACK) req.AddData(nl.NewRtAttr(attrName, nl.ZeroTerminated(name))) _, err := req.Execute(unix.NETLINK_NETFILTER, 0) if err != nil { return handleError(err) } return nil } // Get is part of the interface.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 9.2K bytes - Viewed (0) -
src/runtime/covermeta.go
import ( "internal/coverage/rtcov" "unsafe" ) // The compiler emits calls to runtime.addCovMeta // but this code has moved to rtcov.AddMeta. func addCovMeta(p unsafe.Pointer, dlen uint32, hash [16]byte, pkgpath string, pkgid int, cmode uint8, cgran uint8) uint32 { id := rtcov.AddMeta(p, dlen, hash, pkgpath, pkgid, cmode, cgran) if id == 0 { throw("runtime.addCovMeta: coverage package map collision") } return id
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:57:47 UTC 2024 - 603 bytes - Viewed (0) -
src/internal/coverage/rtcov/rtcov.go
// PkgMap records mappings from hard-coded package IDs to // slots in the List above. PkgMap map[int]int // Set to true if we discover a package mapping glitch. hardCodedListNeedsUpdating bool } // AddMeta is invoked during package "init" functions by the // compiler when compiling for coverage instrumentation; here 'p' is a // meta-data blob of length 'dlen' for the package in question, 'hash'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:57:47 UTC 2024 - 3.1K bytes - Viewed (0) -
src/time/genzabbrs.go
// for location l. func getAbbrs(l *time.Location) (st, dt string) { t := time.Date(time.Now().Year(), 0, 1, 0, 0, 0, 0, l) abbr1, off1 := t.Zone() for i := 0; i < 12; i++ { t = t.AddDate(0, 1, 0) abbr2, off2 := t.Zone() if abbr1 != abbr2 { if off2-off1 < 0 { // southern hemisphere abbr1, abbr2 = abbr2, abbr1 } return abbr1, abbr2 } } return abbr1, abbr1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3K bytes - Viewed (0)