- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 181 for readSize (0.11 sec)
-
samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt
if (console != null) { callback.password = console.readPassword(callback.prompt) } else { System.err.println(callback.prompt) callback.password = System.`in`.bufferedReader().readLine().toCharArray() } } else { throw UnsupportedCallbackException(callback) } } } } fun main() { YubikeyClientAuth().run()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K bytes - Viewed (0) -
cni/pkg/install/install_test.go
} // check if conf file is deleted/conflist file is updated if c.chainedCNIPlugin { resultConfig := testutils.ReadFile(t, cniConfigFilePath) goldenFilepath := filepath.Join("testdata", c.expectedConfigFilename) goldenConfig := testutils.ReadFile(t, goldenFilepath) testutils.CompareBytes(t, resultConfig, goldenConfig, goldenFilepath) } else if file.Exists(cniConfigFilePath) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 11.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/Suggester.java
this.getClass().getClassLoader().getResourceAsStream("suggest_indices/suggest/mappings-default.json")))) { String line; while ((line = br.readLine()) != null) { mappingSource.append(line); } } return mappingSource.toString(); } private String getDefaultIndexSettings() throws IOException {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 14.6K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/route_test.go
{ name: "k8s-gateway-http-route-path-prefix", }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { gotOut := &bytes.Buffer{} cw := &ConfigWriter{Stdout: gotOut} cd, _ := os.ReadFile(fmt.Sprintf("testdata/routes/%s/configdump.json", tt.name)) if err := cw.Prime(cd); err != nil { t.Errorf("failed to parse config dump: %s", err) } err := cw.PrintRouteSummary(RouteFilter{Verbose: true})
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Nov 29 12:37:14 UTC 2023 - 2.8K bytes - Viewed (0) -
docs/debugging/hash-set/main.go
} if setCount == 0 { log.Fatalln("set count cannot be zero") } id := uuid.MustParse(deploymentID) if file != "" { distrib := make([][]string, setCount) b, err := os.ReadFile(file) if err != nil { log.Fatalln(err) } b = bytes.ReplaceAll(b, []byte("\r"), []byte{}) sc := bufio.NewScanner(bytes.NewBuffer(b)) for sc.Scan() { object = strings.TrimSpace(sc.Text())
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.7K bytes - Viewed (0) -
cmd/handler-api.go
const ( cgroupV1MemLimitFile = "/sys/fs/cgroup/memory/memory.limit_in_bytes" cgroupV2MemLimitFile = "/sys/fs/cgroup/memory.max" ) func cgroupMemLimit() (limit uint64) { buf, err := os.ReadFile(cgroupV2MemLimitFile) if err != nil { buf, err = os.ReadFile(cgroupV1MemLimitFile) } if err != nil { return 0 } limit, err = strconv.ParseUint(strings.TrimSpace(string(buf)), 10, 64) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 26 17:07:10 UTC 2024 - 10.4K bytes - Viewed (0) -
docs/debugging/healing-bin/main.go
} ht[file.Name] = htr } } b, err := json.MarshalIndent(ht, "", " ") if err != nil { return err } fmt.Println(string(b)) return nil } b, err := os.ReadFile(file) if err != nil { return err } buf := bytes.NewBuffer(nil) if _, err = msgp.CopyToJSON(buf, bytes.NewReader(b)); err != nil { return err } var htr map[string]interface{}
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.2K bytes - Viewed (0) -
src/cmd/asm/internal/asm/endtoend_test.go
if !ok || failed { t.Errorf("asm: %s assembly failed", goarch) return } output := strings.Split(testOut.String(), "\n") // Reconstruct expected output by independently "parsing" the input. data, err := os.ReadFile(input) if err != nil { t.Error(err) return } lineno := 0 seq := 0 hexByLine := map[string]string{} lines := strings.SplitAfter(string(data), "\n") Diff: for _, line := range lines {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Dec 07 18:42:59 UTC 2023 - 11.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java
try (BufferedReader reader = new BufferedReader(new InputStreamReader(in, Constants.UTF_8))) { long id = 0; String line = null; while ((line = reader.readLine()) != null) { // Remove comments final String replacedLine = line.replaceAll("#.*$", StringUtil.EMPTY).trim(); // Skip empty lines or comment lines
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 10.2K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject.go
return nil, nil, err } } } injector := &ExternalInjector{} if injectConfigFile != "" { injectionConfig, err := os.ReadFile(injectConfigFile) // nolint: vetshadow if err != nil { return nil, nil, err } injectConfig, err := readInjectConfigFile(injectionConfig) if err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 16:31:46 UTC 2024 - 21K bytes - Viewed (0)