Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 966 for 1bytes (0.89 sec)

  1. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

        }
    
        @Test
        @DisplayName("Test writeBytesWireFormat returns 0")
        void testWriteBytesWireFormat() {
            response = new Smb2QueryInfoResponse(mockConfig, (byte) 1, (byte) 2);
            byte[] dst = new byte[1024];
            int dstIndex = 0;
    
            int result = response.writeBytesWireFormat(dst, dstIndex);
    
            assertEquals(0, result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/http/NtlmSspTest.java

        @Mock
        private HttpServletResponse mockResponse;
    
        private NtlmSsp ntlmSsp;
    
        // A sample challenge array
        private final byte[] challenge = new byte[] { 0x01, 0x23, 0x45, 0x67, (byte) 0x89, (byte) 0xab, (byte) 0xcd, (byte) 0xef };
    
        // Base64 encoded Type 1 message: NTLMSSP, Type 1, flags=0x00088207
        // Domain="DOMAIN", Workstation="WORKSTATION"
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/HashTestUtils.java

        Random rng = new Random(0L);
        byte[] bytes = new byte[rng.nextInt(256) + 1];
        rng.nextBytes(bytes);
        assertEquals(hashFunction.hashBytes(bytes), hashFunction.hashBytes(ByteBuffer.wrap(bytes)));
      }
    
      static void assertHashByteBufferExhaustsBuffer(HashFunction hashFunction) {
        Random rng = new Random(0L);
        byte[] bytes = new byte[rng.nextInt(256) + 1];
        rng.nextBytes(bytes);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComWriteResponse.java

        }
    
        /**
         * Gets the number of bytes written.
         *
         * @return the count of bytes written
         */
        public long getCount() {
            return this.count;
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

        void testCompleteWireFormatWriting() {
            trans2QueryFSInfo = new Trans2QueryFSInformation(config, FileSystemInformation.FS_SIZE_INFO);
    
            byte[] setupBuffer = new byte[256];
            byte[] paramBuffer = new byte[256];
            byte[] dataBuffer = new byte[256];
    
            int setupWritten = trans2QueryFSInfo.writeSetupWireFormat(setupBuffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java

            byte[] dst = new byte[10];
    
            // writeSetupWireFormat writes 4 bytes:
            // - subCommand byte
            // - 3 zero bytes (padding and no FID)
            int written = pipe.writeSetupWireFormat(dst, 0);
    
            assertEquals(4, written, "Setup should write 4 bytes");
            assertEquals(SmbComTransaction.TRANS_WAIT_NAMED_PIPE, dst[0], "First byte should be subCommand");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/TreeConnectResponseTest.java

            void testWriteBytesWireFormat() throws Exception {
                // Given
                byte[] buffer = new byte[100];
    
                // When
                int bytesWritten = (int) invokeMethod(response, "writeBytesWireFormat", new Class[] { byte[].class, int.class }, buffer, 0);
    
                // Then
                assertEquals(0, bytesWritten, "Should write 0 bytes for response");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComWriteResponseTest.java

            // Using little-endian byte order as per SMBUtil.readInt2
            byte[] buf = new byte[12];
            buf[0] = 0x34; // Low byte
            buf[1] = 0x12; // High byte
            int written = resp.readParameterWordsWireFormat(buf, 0);
    
            assertEquals(8, written, "Expected readParameterWordsWireFormat to advance 8 bytes");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

        void testInvalidMessageBytes() {
            // Given
            byte[] invalidBytes = { 1, 2, 3, 4, 5 }; // Too short and invalid
    
            // When/Then
            assertThrows(IOException.class, () -> {
                new Type3Message(invalidBytes);
            });
        }
    
        @Test
        @DisplayName("Should handle parsing null message bytes")
        void testNullMessageBytes() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  10. 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 (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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4K bytes
    - Viewed (0)
Back to top