Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,078 for bytesB (0.2 sec)

  1. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/internal/daemon/clientinput/StdInStreamTest.groovy

            def text1 = "some text"
            def bytes1 = text1.bytes
            def text2 = "more"
            def bytes2 = text2.bytes
    
            when:
            async {
                start {
                    def buffer = new byte[1024]
    
                    def nread = stream.read(buffer)
                    assert nread == bytes1.length
                    assert new String(buffer, 0, nread) == text1
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/crypto/ecdh/nist.go

    	name        string
    	newPoint    func() Point
    	scalarOrder []byte
    }
    
    // nistPoint is a generic constraint for the nistec Point types.
    type nistPoint[T any] interface {
    	Bytes() []byte
    	BytesX() ([]byte, error)
    	SetBytes([]byte) (T, error)
    	ScalarMult(T, []byte) (T, error)
    	ScalarBaseMult([]byte) (T, error)
    }
    
    func (c *nistCurve[Point]) String() string {
    	return c.name
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Huffman.kt

          sink.writeByte(accumulator.toInt())
        }
      }
    
      fun encodedLength(bytes: ByteString): Int {
        var bitCount = 0L
    
        for (i in 0 until bytes.size) {
          val byteIn = bytes[i] and 0xff
          bitCount += CODE_BIT_COUNTS[byteIn].toLong()
        }
    
        return ((bitCount + 7) shr 3).toInt() // Round up to an even byte.
      }
    
      fun decode(
        source: BufferedSource,
        byteCount: Long,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/AbiExtractingClasspathResourceHasherTest.groovy

            def fileSnapshotContext = Mock(RegularFileSnapshotContext)
            def fileSnapshot = Mock(RegularFileSnapshot)
    
            given:
            def file = temporaryDirectory.newFile('String.class')
            file.bytes = bytesOf(String.class)
    
            when:
            resourceHasher.hash(fileSnapshotContext)
    
            then:
            1 * fileSnapshotContext.getSnapshot() >> fileSnapshot
            2 * fileSnapshot.getName() >> file.name
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/internal/classpath/InPlaceClasspathBuilderTest.groovy

            def file = tmpDir.file("thing.zip")
    
            when:
            builder.jar(file) {
                it.put("a.class", "bytes".bytes)
                it.put("dir/b.class", "bytes".bytes)
                it.put("dir/c.class", "bytes".bytes)
                it.put("dir/sub/d.class", "bytes".bytes)
            }
    
            then:
            def zip = new ZipTestFixture(file)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 14:05:09 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. cmd/httprange_test.go

    		errExpected bool
    	}{
    		{"bytes=0-", false},
    		{"bytes=1-", false},
    
    		{"bytes=0-9", false},
    		{"bytes=1-10", false},
    		{"bytes=1-1", false},
    		{"bytes=2-5", false},
    
    		{"bytes=-5", false},
    		{"bytes=-1", false},
    		{"bytes=-1000", false},
    		{"bytes=", true},
    		{"bytes= ", true},
    		{"byte=", true},
    		{"bytes=A-B", true},
    		{"bytes=1-B", true},
    		{"bytes=B-1", true},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun May 05 16:56:21 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. test/fixedbugs/issue7921.go

    	var b bytes.Buffer
    	b.Grow(64) // ERROR "bufferNoEscape4 ignoring self-assignment in bytes.b.buf = bytes.b.buf\[:bytes.m\]$" "inlining call to bytes.\(\*Buffer\).Grow$" `".+" escapes to heap`
    	useBuffer(&b)
    	return b.Bytes() // ERROR "inlining call to bytes.\(\*Buffer\).Bytes$"
    }
    
    func bufferNoEscape5() { // ERROR "can inline bufferNoEscape5$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 19:43:26 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MemoryAmount.java

        public static MemoryAmount of(long bytes) {
            return new MemoryAmount(bytes, String.valueOf(bytes));
        }
    
        public static MemoryAmount ofKiloBytes(long kiloBytes) {
            long bytes = kiloBytes * KILO_FACTOR;
            return new MemoryAmount(bytes, bytes + "k");
        }
    
        public static MemoryAmount ofMegaBytes(long megaBytes) {
            long bytes = megaBytes * MEGA_FACTOR;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/text/unicode/norm/input.go

    		for ; p < len(in.bytes) && !utf8.RuneStart(in.bytes[p]); p++ {
    		}
    	}
    	return p
    }
    
    func (in *input) appendSlice(buf []byte, b, e int) []byte {
    	if in.bytes != nil {
    		return append(buf, in.bytes[b:e]...)
    	}
    	for i := b; i < e; i++ {
    		buf = append(buf, in.str[i])
    	}
    	return buf
    }
    
    func (in *input) copySlice(buf []byte, b, e int) int {
    	if in.bytes == nil {
    		return copy(buf, in.str[b:e])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MemoryAmountTest.groovy

    class MemoryAmountTest extends Specification {
    
        def "bytes #bytes"() {
            given:
            def amount = MemoryAmount.of(bytes)
    
            expect:
            amount.bytes == bytes
            amount.toString() == bytes.toString()
    
            where:
            bytes << [1L, Long.MAX_VALUE]
        }
    
        def "invalid bytes #bytes"() {
            when:
            MemoryAmount.of(bytes)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top