Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 1,431 for byte1 (0.06 sec)

  1. android/guava-tests/test/com/google/common/io/ByteSinkTester.java

          String name, ByteSinkFactory factory, String desc, byte[] bytes) {
        TestSuite suite = new TestSuite(name + " [" + desc + "]");
        for (final Method method : testMethods) {
          suite.addTest(new ByteSinkTester(factory, bytes, name, desc, method));
        }
        return suite;
      }
    
      private ByteSink sink;
    
      ByteSinkTester(
          ByteSinkFactory factory, byte[] data, String suiteName, String caseDesc, Method method) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/ByteSinkTester.java

          String name, ByteSinkFactory factory, String desc, byte[] bytes) {
        TestSuite suite = new TestSuite(name + " [" + desc + "]");
        for (final Method method : testMethods) {
          suite.addTest(new ByteSinkTester(factory, bytes, name, desc, method));
        }
        return suite;
      }
    
      private ByteSink sink;
    
      ByteSinkTester(
          ByteSinkFactory factory, byte[] data, String suiteName, String caseDesc, Method method) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/ByteSink.java

      }
    
      /**
       * Writes all the given bytes to this sink.
       *
       * @throws IOException if an I/O occurs while writing to this sink
       */
      public void write(byte[] bytes) throws IOException {
        checkNotNull(bytes);
    
        try (OutputStream out = openStream()) {
          out.write(bytes);
        }
      }
    
      /**
       * Writes all the bytes from the given {@code InputStream} to this sink. Does not close {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 28 16:55:09 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. cmd/bucket-stats_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalBucketReplicationStat(t *testing.T) {
    	v := BucketReplicationStat{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 30 08:00:59 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  5. cmd/batch-job-common-types_gen.go

    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z BatchJobSize) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	o = msgp.AppendInt64(o, int64(z))
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *BatchJobSize) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	{
    		var zb0001 int64
    		zb0001, bts, err = msgp.ReadInt64Bytes(bts)
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v1_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalChecksumInfo(t *testing.T) {
    	v := ChecksumInfo{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

                if (material[i] != 0) {
                    byte[] context = new byte[8];
                    System.arraycopy(material, 32, context, 0, 8);
                    setContext(context);
                    break;
                }
            }
            if (offset == 40 || material.length == 40) return;
            bytes = readSecurityBuffer(material, 40);
            if (bytes.length != 0) setTargetInformation(bytes);
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 12.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/PairedStats.java

      }
    
      // Serialization helpers
    
      /** The size of byte array representation in bytes. */
      private static final int BYTES = Stats.BYTES * 2 + Double.SIZE / Byte.SIZE;
    
      /**
       * Gets a byte array representation of this instance.
       *
       * <p><b>Note:</b> No guarantees are made regarding stability of the representation between
       * versions.
       */
      public byte[] toByteArray() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  9. cmd/site-replication-metrics_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalRStat(t *testing.T) {
    	v := RStat{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 30 08:00:59 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  10. internal/grid/msg_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalconnectReq(t *testing.T) {
    	v := connectReq{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 12.9K bytes
    - Viewed (0)
Back to top