Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,742 for bytes1 (0.24 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/cmd/compile/internal/syntax/parser_test.go

    	var buf1 bytes.Buffer
    	_, err := Fprint(&buf1, ast1, LineForm)
    	if err != nil {
    		panic(err)
    	}
    	bytes1 := buf1.Bytes()
    
    	ast2, err := Parse(NewFileBase(filename), &buf1, nil, nil, 0)
    	if err != nil {
    		panic(err)
    	}
    
    	var buf2 bytes.Buffer
    	_, err = Fprint(&buf2, ast2, LineForm)
    	if err != nil {
    		panic(err)
    	}
    	bytes2 := buf2.Bytes()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 16:30:19 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. test/escape_reflect.go

    	return (*int)(v.UnsafePointer())
    }
    
    func bytes1(x []byte) byte { // ERROR "x does not escape"
    	v := reflect.ValueOf(x) // ERROR "x does not escape"
    	return v.Bytes()[0]
    }
    
    // Unfortunate: should only escape content. x (the interface storage) should not escape.
    func bytes2(x []byte) []byte { // ERROR "leaking param: x$"
    	v := reflect.ValueOf(x) // ERROR "x escapes to heap"
    	return v.Bytes()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_test.cc

      proto.SerializeToString(&bytes1);
    
      const int64_t pts2[] = {1, 3, 5, 7};
      tensorflow::PartialTensorShape(pts2).AsProto(&proto);
      proto.SerializeToString(&bytes2);
    
      std::unique_ptr<const void*[]> list_ptrs;
      std::unique_ptr<size_t[]> list_lens;
      const std::vector<string> list = {bytes1, bytes2};
      StringVectorToArrays(list, &list_ptrs, &list_lens);
    
      auto desc = init("list(shape)");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  5. src/reflect/all_test.go

    	{V(uintptr(0x110004)), V(MyString("\uFFFD"))},
    
    	// named []byte
    	{V(string("bytes1")), V(MyBytes("bytes1"))},
    	{V(MyBytes("bytes2")), V(string("bytes2"))},
    	{V(MyBytes("bytes3")), V(MyBytes("bytes3"))},
    	{V(MyString("bytes1")), V(MyBytes("bytes1"))},
    	{V(MyBytes("bytes2")), V(MyString("bytes2"))},
    
    	// named []rune
    	{V(string("runes♝")), V(MyRunes("runes♝"))},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/Bytes.java

    // javadoc?
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Bytes {
      private Bytes() {}
    
      /**
       * Returns a hash code for {@code value}; equal to the result of invoking {@code ((Byte)
       * value).hashCode()}.
       *
       * <p><b>Java 8+ users:</b> use {@link Byte#hashCode(byte)} instead.
       *
       * @param value a primitive {@code byte} value
       * @return a hash code for the value
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Bytes.java

    // javadoc?
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Bytes {
      private Bytes() {}
    
      /**
       * Returns a hash code for {@code value}; equal to the result of invoking {@code ((Byte)
       * value).hashCode()}.
       *
       * <p><b>Java 8+ users:</b> use {@link Byte#hashCode(byte)} instead.
       *
       * @param value a primitive {@code byte} value
       * @return a hash code for the value
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  8. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

        byte[] encode(Closure<Encoder> closure) {
            def bytes = new ByteArrayOutputStream()
            encodeTo(bytes, closure)
            return bytes.toByteArray()
        }
    
        byte[] truncate(Closure<Encoder> closure) {
            def bytes = new ByteArrayOutputStream()
            encodeTo(bytes, closure)
            def result = bytes.toByteArray()
            if (result.length < 2) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/sets/byte.go

    limitations under the License.
    */
    
    package sets
    
    // Byte is a set of bytes, implemented via map[byte]struct{} for minimal memory consumption.
    //
    // Deprecated: use generic Set instead.
    // new ways:
    // s1 := Set[byte]{}
    // s2 := New[byte]()
    type Byte map[byte]Empty
    
    // NewByte creates a Byte from a list of values.
    func NewByte(items ...byte) Byte {
    	return Byte(New[byte](items...))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  10. src/go/build/testdata/directives/b_test.go

    Russ Cox <******@****.***> 1669746650 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 36 bytes
    - Viewed (0)
Back to top