Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 100 for readbyte (0.14 sec)

  1. platforms/documentation/docs/src/snippets/buildCache/cacheable-bundle/kotlin/build.gradle.kts

            val scriptsFiles = projectLayout.projectDirectory.dir("scripts").asFile.listFiles()
    
            bundleFile.outputStream().use { stream ->
                scriptsFiles.sorted().forEach {
                    stream.write(it.readBytes())
                }
            }
        }
    }
    
    // tag::bundle-task[]
    tasks.register<NpmTask>("bundle") {
        args = listOf("run", "bundle")
    
        outputs.cacheIf { true }
    
        inputs.dir(file("scripts"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. samples/tcp-echo/src/main.go

    func handleConnection(conn net.Conn, prefix string) {
    	defer conn.Close()
    	reader := bufio.NewReader(conn)
    	for {
    		// read client request data
    		bytes, err := reader.ReadBytes(byte('\n'))
    		if err != nil {
    			if err != io.EOF {
    				fmt.Println("failed to read data, err:", err)
    			}
    			return
    		}
    		fmt.Printf("request: %s", bytes)
    
    		// prepend prefix and send as response
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 10 19:10:51 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/buildCache/cacheable-bundle-task/kotlin/build.gradle.kts

            val scriptsFiles = projectLayout.projectDirectory.dir("scripts").asFile.listFiles()
    
            bundleFile.outputStream().use { stream ->
                scriptsFiles.sorted().forEach {
                    stream.write(it.readBytes())
                }
            }
        }
    }
    
    // tag::bundle-task[]
    @CacheableTask                                       // <1>
    abstract class BundleTask : NpmTask() {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. src/compress/bzip2/bzip2_test.go

    	for i, v := range vectors {
    		val := br.ReadBits(v.nbits)
    		if fail := bool(br.err != nil); fail != v.fail {
    			if fail {
    				t.Errorf("test %d, unexpected failure: ReadBits(%d) = %v", i, v.nbits, br.err)
    			} else {
    				t.Errorf("test %d, unexpected success: ReadBits(%d) = nil", i, v.nbits)
    			}
    		}
    		if !v.fail && val != v.value {
    			t.Errorf("test %d, mismatching value: ReadBits(%d) = %d, want %d", i, v.nbits, val, v.value)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 6.3K bytes
    - Viewed (0)
  5. src/os/user/listgroups_unix.go

    	userOnly := userCommas[1 : len(userCommas)-1] // john
    
    	// Add primary Gid first.
    	groups := []string{u.Gid}
    
    	rd := bufio.NewReader(r)
    	done := false
    	for !done {
    		line, err := rd.ReadBytes('\n')
    		if err != nil {
    			if err == io.EOF {
    				done = true
    			} else {
    				return groups, err
    			}
    		}
    
    		// Look for username in the list of users. If user is found,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. samples/tcp-echo/src/main_test.go

    		// test the TCP Echo Server output
    		if _, err := conn.Write([]byte(request + "\n")); err != nil {
    			t.Fatalf("couldn't send request: %v", err)
    		} else {
    			reader := bufio.NewReader(conn)
    			if response, err := reader.ReadBytes(byte('\n')); err != nil {
    				t.Fatalf("couldn't read server response: %v", err)
    			} else if !strings.HasPrefix(string(response), want) {
    				t.Errorf("output doesn't match, wanted: %s, got: %s", want, response)
    			}
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 06 09:12:44 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinDslJvmTargetIntegrationTest.kt

            val utils = withClassJar("utils.jar", JavaClassUtil::class.java)
            mavenRepo.module("test", "utils", "1.0")
                .mainArtifact(mapOf("content" to utils.readBytes()))
                .publish()
    
            withDefaultSettingsIn("plugin")
            withBuildScriptIn("plugin", """
                plugins {
                    `kotlin-dsl`
                    `maven-publish`
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 08:31:21 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/JodExtractor.java

                }
            }
            try {
                return new String(FileUtil.readBytes(outputFile), outputEncoding);
            } catch (final UnsupportedEncodingException e) {
                return new String(FileUtil.readBytes(outputFile), Constants.UTF_8_CHARSET);
            }
        }
    
        private Extractor getExtractor(final String ext) {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/crypto/cryptobyte/string.go

    // the read was successful.
    func (s *String) ReadUint24LengthPrefixed(out *String) bool {
    	return s.readLengthPrefixed(3, out)
    }
    
    // ReadBytes reads n bytes into out and advances over them. It reports
    // whether the read was successful.
    func (s *String) ReadBytes(out *[]byte, n int) bool {
    	v := s.read(n)
    	if v == nil {
    		return false
    	}
    	*out = v
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/zip.kt

    fun fileEntriesRelativeTo(baseDir: File, files: Sequence<File>): Sequence<Pair<String, ByteArray>> =
        files.filter { it.isFile }.map { file ->
            val path = file.normalisedPathRelativeTo(baseDir)
            val bytes = file.readBytes()
            path to bytes
        }
    
    
    internal
    fun File.normalisedPathRelativeTo(baseDir: File) =
        normaliseFileSeparators(relativeTo(baseDir).path)
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 31 20:39:17 UTC 2023
    - 3.5K bytes
    - Viewed (1)
Back to top