Search Options

Results per page
Sort
Preferred Languages
Advance

Results 751 - 760 of 1,693 for byte2 (0.02 sec)

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

        int b = in.read();
        assertEquals('y', b);
    
        verify(hasher).putByte((byte) 'y');
        verify(hashFunction).newHasher();
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testRead_putByteArray() throws Exception {
        HashingInputStream in = new HashingInputStream(hashFunction, buffer);
    
        byte[] buf = new byte[4];
        int numOfByteRead = in.read(buf, 0, buf.length);
        assertEquals(4, numOfByteRead);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        int b = in.read();
        assertEquals('y', b);
    
        verify(hasher).putByte((byte) 'y');
        verify(hashFunction).newHasher();
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testRead_putByteArray() throws Exception {
        HashingInputStream in = new HashingInputStream(hashFunction, buffer);
    
        byte[] buf = new byte[4];
        int numOfByteRead = in.read(buf, 0, buf.length);
        assertEquals(4, numOfByteRead);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/net/NetShareEnum.java

            this.maxSetupCount = (byte) 0x00;
            this.setupCount = 0;
            this.timeout = 5000;
        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeParametersWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            byte[] descr;
    
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java

            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 5, 9 })
            @DisplayName("Returns 0 with valid array and various indices")
            void nonNullArray(int index) {
                byte[] arr = new byte[10];
                assertEquals(0, response.writeParameterWordsWireFormat(arr, index));
            }
        }
    
        @Nested
        @DisplayName("writeBytesWireFormat tests")
        class WriteBytes {
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            Smb2SessionSetupResponse resp = newResponse();
    
            byte[] buf = new byte[256];
            int headerStart = 0;
            long expectedSessionId = 0x1122334455667788L;
            buildHeader(buf, headerStart, NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, 0x0001, expectedSessionId);
    
            int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
            byte[] blob = new byte[] { 10, 20, 30, 40, 50 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            byte subCmd = (byte) getPrivateField(cmd, "subCommand");
            assertEquals(subCmd, buf[0]);
            assertEquals((byte) 0x00, buf[1]);
        }
    
        @Test
        @DisplayName("writeParametersWireFormat writes referral level and path")
        void testWriteParams() throws Exception {
            Trans2GetDfsReferral cmd = new Trans2GetDfsReferral("abc");
            setPrivateField(cmd, "maxReferralLevel", 0x12AB);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Settings.kt

        /** HTTP/2: Size in bytes of the table used to decode the sender's header blocks. */
        const val HEADER_TABLE_SIZE = 1
    
        /** HTTP/2: The peer must not send a PUSH_PROMISE frame when this is 0. */
        const val ENABLE_PUSH = 2
    
        /** Sender's maximum number of concurrent streams. */
        const val MAX_CONCURRENT_STREAMS = 3
    
        /** Window size in bytes. */
        const val INITIAL_WINDOW_SIZE = 4
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/com/SmbComReadAndXResponse.java

            super(config);
            this.data = b;
            this.offset = off;
        }
    
        void setParam(final byte[] b, final int off) {
            this.data = b;
            this.offset = off;
        }
    
        /**
         * Gets the read data buffer.
         *
         * @return the read data
         */
        public final byte[] getData() {
            return this.data;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileInformationTest.java

            // Verify all constants have expected values
            assertEquals((byte) 20, FileInformation.FILE_ENDOFFILE_INFO);
            assertEquals((byte) 0x4, FileInformation.FILE_BASIC_INFO);
            assertEquals((byte) 0x5, FileInformation.FILE_STANDARD_INFO);
            assertEquals((byte) 0x6, FileInformation.FILE_INTERNAL_INFO);
            assertEquals((byte) 10, FileInformation.FILE_RENAME_INFO);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformation.java

            maxDataCount = 800;
            maxSetupCount = 0;
        }
    
        @Override
        int writeSetupWireFormat(final byte[] dst, int dstIndex) {
            dst[dstIndex] = subCommand;
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00;
            return 2;
        }
    
        @Override
        int writeParametersWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            writeInt2(informationLevel, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.7K bytes
    - Viewed (0)
Back to top