Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,313 for Byte (0.13 sec)

  1. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

      public void testBytes() {
        Sink sink = new Sink(4); // byte order insignificant here
        byte[] expected = {1, 2, 3, 4, 5, 6, 7, 8};
        sink.putByte((byte) 1);
        sink.putBytes(new byte[] {2, 3, 4, 5, 6});
        sink.putByte((byte) 7);
        sink.putBytes(new byte[] {});
        sink.putBytes(new byte[] {8});
        HashCode unused = sink.hash();
        sink.assertInvariants(8);
        sink.assertBytes(expected);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/RandomAccessFileTest.java

                    raf.write(new byte[] {
                        0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8
                    });
                    raf.seek(0);
                    assertEquals(0, raf.getFilePointer());
    
                    byte[] buf = new byte[4];
    
                    raf.readFully(buf);
                    assertArrayEquals(new byte[] {
                        0x1, 0x2, 0x3, 0x4
                    }, buf);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

        assertTrue(sink.wasStreamOpened());
        assertFalse(sink.wasStreamClosed());
    
        out.write(new byte[] {1, 2, 3, 4});
        out.close();
    
        assertTrue(sink.wasStreamClosed());
        assertArrayEquals(new byte[] {1, 2, 3, 4}, sink.getBytes());
      }
    
      public void testWrite_bytes() throws IOException {
        assertArrayEquals(new byte[0], sink.getBytes());
        sink.write(bytes);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/NetServerEnum2.java

            return dstIndex - start;
        }
        int writeDataWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
        int readSetupWireFormat( byte[] buffer, int bufferIndex, int len ) {
            return 0;
        }
        int readParametersWireFormat( byte[] buffer, int bufferIndex, int len ) {
            return 0;
        }
        int readDataWireFormat( byte[] buffer, int bufferIndex, int len ) {
            return 0;
        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 3.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        assertCrc(0x62a8ab43, fulls);
      }
    
      public void testFull100() {
        // Test 100 byte array of 0xFF.
        byte[] fulls = new byte[100];
        Arrays.fill(fulls, (byte) 0xFF);
        assertCrc(0xbc753add, fulls);
      }
    
      public void testAscending() {
        // Test 32 byte arrays of ascending.
        byte[] ascending = new byte[32];
        for (int i = 0; i < 32; i++) {
          ascending[i] = (byte) i;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 23 18:30:33 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  6. cmd/object-api-datatypes_gen.go

    	"github.com/tinylib/msgp/msgp"
    )
    
    // MarshalMsg implements msgp.Marshaler
    func (z BackendType) MarshalMsg(b []byte) (o []byte, err error) {
    	o = msgp.Require(b, z.Msgsize())
    	o = msgp.AppendInt(o, int(z))
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *BackendType) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	{
    		var zb0001 int
    		zb0001, bts, err = msgp.ReadIntBytes(bts)
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 69.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

         * @param tc
         * @param chlng
         *            The server challenge.
         * @return A <code>byte[]</code> containing the effective user session key,
         *         used in SMB MAC signing and NTLMSSP signing and sealing.
         */
        public byte[] getUserSessionKey ( CIFSContext tc, byte[] chlng ) {
            byte[] key = new byte[16];
            try {
                getUserSessionKey(tc, chlng, key, 0);
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 18.8K bytes
    - Viewed (0)
  8. internal/event/name_test.go

    	testCases := []struct {
    		name         Name
    		expectedData []byte
    		expectErr    bool
    	}{
    		{ObjectAccessedAll, []byte("<Name>s3:ObjectAccessed:*</Name>"), false},
    		{ObjectRemovedDelete, []byte("<Name>s3:ObjectRemoved:Delete</Name>"), false},
    		{ObjectRemovedNoOP, []byte("<Name>s3:ObjectRemoved:NoOP</Name>"), false},
    		{blankName, []byte("<Name></Name>"), false},
    	}
    
    	for i, testCase := range testCases {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

        byte b4 = readAndCheckByte();
        byte b5 = readAndCheckByte();
        byte b6 = readAndCheckByte();
        byte b7 = readAndCheckByte();
        byte b8 = readAndCheckByte();
    
        return Longs.fromBytes(b8, b7, b6, b5, b4, b3, b2, b1);
      }
    
      /**
       * Reads a {@code float} as specified by {@link DataInputStream#readFloat()}, except using
       * little-endian byte order.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        assertCrc(0x62a8ab43, fulls);
      }
    
      public void testFull100() {
        // Test 100 byte array of 0xFF.
        byte[] fulls = new byte[100];
        Arrays.fill(fulls, (byte) 0xFF);
        assertCrc(0xbc753add, fulls);
      }
    
      public void testAscending() {
        // Test 32 byte arrays of ascending.
        byte[] ascending = new byte[32];
        for (int i = 0; i < 32; i++) {
          ascending[i] = (byte) i;
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Dec 23 18:30:33 GMT 2020
    - 6.5K bytes
    - Viewed (0)
Back to top