Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for addData (0.2 sec)

  1. 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)
  2. 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)
  3. src/main/java/org/codelibs/fess/util/UpgradeUtil.java

            } catch (final Exception e) {
                logger.warn("Failed to update {} settings.", index, e);
            }
    
            return false;
        }
    
        public static boolean addData(final Client client, final String index, final String id, final String source) {
            try {
                final IndexRequest indexRequest = new IndexRequest(index).id(id).source(source, XContentType.JSON);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. test-site/activator

        done
        echo ""
      }
    
      exec "$@"
    }
    addJava () {
      dlog "[addJava] arg = '$1'"
      java_args=( "${java_args[@]}" "$1" )
    }
    addApp () {
      dlog "[addApp] arg = '$1'"
      sbt_commands=( "${app_commands[@]}" "$1" )
    }
    addResidual () {
      dlog "[residual] arg = '$1'"
      residual_args=( "${residual_args[@]}" "$1" )
    }
    addDebugger () {
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 9.3K bytes
    - Viewed (0)
  5. 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)
  6. src/time/mono_test.go

    	no("tu.In(UTC)", tu.In(UTC))
    	no("tu.AddDate(1, 1, 1)", tu.AddDate(1, 1, 1))
    	no("tu.AddDate(0, 0, 0)", tu.AddDate(0, 0, 0))
    	no("tu.Local()", tu.Local())
    	no("tu.UTC()", tu.UTC())
    	no("tu.Round(2)", tu.Round(2))
    	no("tu.Truncate(2)", tu.Truncate(2))
    
    	yes("tm.Add(1)", tm.Add(1))
    	no("tm.AddDate(1, 1, 1)", tm.AddDate(1, 1, 1))
    	no("tm.AddDate(0, 0, 0)", tm.AddDate(0, 0, 0))
    	no("tm.In(UTC)", tm.In(UTC))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 19 17:10:49 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/MutableCommandLineToolContext.java

    import java.io.File;
    import java.util.List;
    
    public interface MutableCommandLineToolContext extends CommandLineToolContext {
    
        void setArgAction(Action<List<String>> argAction);
    
        void addPath(File pathEntry);
    
        void addPath(List<File> path);
    
        void addEnvironmentVar(String key, String value);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1013 bytes
    - Viewed (0)
  8. 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)
  9. internal/s3select/sql/timestampfuncs.go

    	var duration time.Duration
    	switch timePart {
    	case timePartYear:
    		return FromTimestamp(t.AddDate(int(qty), 0, 0)), nil
    	case timePartMonth:
    		return FromTimestamp(t.AddDate(0, int(qty), 0)), nil
    	case timePartDay:
    		return FromTimestamp(t.AddDate(0, 0, int(qty))), nil
    	case timePartHour:
    		duration = time.Duration(qty) * time.Hour
    	case timePartMinute:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/DefaultMutableCommandLineToolContext.java

        @Override
        public void setArgAction(Action<List<String>> argAction) {
            postArgsAction = argAction;
        }
    
        @Override
        public void addPath(File pathEntry) {
            this.path.add(pathEntry);
        }
    
        @Override
        public void addPath(List<File> path) {
            this.path.addAll(path);
        }
    
        @Override
        public List<File> getPath() {
            return path;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top