Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 229 for k1024 (0.01 sec)

  1. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

        void testBufferAlignment() {
            // Given
            when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB311);
            request = new Smb2NegotiateRequest(mockConfig, 0);
    
            byte[] buffer = new byte[1024];
    
            // When
            int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
            // Then - Total bytes written should be 8-byte aligned
            assertEquals(0, bytesWritten % 8);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

          }
        }
      }
    
      private fun MockResponse.Builder.body(
        protocol: Protocol,
        body: String,
      ) = apply {
        when (protocol) {
          Protocol.HTTP_1_1 -> chunkedBody(body, 1024) // Force multiple chunks.
          else -> body(body)
        }
      }
    
      private fun enableProtocol(protocol: Protocol) {
        if (protocol == Protocol.HTTP_2) {
          enableTls()
          client =
            client
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 08 21:45:04 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                // Simulate the pattern from Smb2CreateResponse
                byte[] nameBytes = "SMB2_CREATE_CONTEXT".getBytes(StandardCharsets.UTF_8);
                byte[] dataBuffer = new byte[1024];
                Arrays.fill(dataBuffer, (byte) 0xAB);
    
                TestCreateContextResponse contextResponse = new TestCreateContextResponse(nameBytes);
    
                // Simulate decode call
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/spnego/NegTokenInitTest.java

            }
    
            @Test
            @DisplayName("Large MIC values are handled correctly")
            void testLargeMicValue() throws Exception {
                byte[] largeMic = new byte[1024];
                Arrays.fill(largeMic, (byte) 0xAB);
    
                NegTokenInit init = new NegTokenInit(new ASN1ObjectIdentifier[] { OID_KRB }, 0, null, largeMic);
    
                byte[] encoded = init.toByteArray();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            authMethod = null;
            final InputStream errorStream = connection.getErrorStream();
            if (errorStream != null && errorStream.available() != 0) {
                int count;
                final byte[] buf = new byte[1024];
                while ((count = errorStream.read(buf, 0, 1024)) != -1) {
                    ;
                }
            }
            String authHeader;
            if (response == HTTP_UNAUTHORIZED) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

            verify(request, times(1)).split();
        }
    
        @Test
        @DisplayName("Test size returns positive message size")
        void testSizeReturnsPositiveValue() {
            // Given
            int expectedSize = 1024;
            when(request.size()).thenReturn(expectedSize);
    
            // When
            int result = request.size();
    
            // Then
            assertEquals(expectedSize, result);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            // Test various filename formats
            trans2FindNext2 = new Trans2FindNext2(config, TEST_SID, TEST_RESUME_KEY, filename, TEST_BATCH_COUNT, TEST_BATCH_SIZE);
    
            byte[] buffer = new byte[1024];
            int written = trans2FindNext2.writeParametersWireFormat(buffer, 0);
    
            // Verify filename is written and can be read back
            String actualFilename = readString(buffer, 12, written - 12);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

        @Test
        @DisplayName("Test decode with large data payload")
        void testDecodeWithLargeData() throws SMBProtocolDecodingException {
            // Prepare test data with large data section
            int dataSize = 1024;
            byte[] buffer = new byte[16 + dataSize];
            int bufferIndex = 0;
    
            // Set up test values
            int namedPipeState = 0x03;
            int readDataAvailable = dataSize;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            // Test with different offset
            response = new ValidateNegotiateInfoResponse();
            buffer = new byte[50];
            bytesDecoded = response.decode(buffer, 10, 24);
            assertEquals(24, bytesDecoded, "Should return 24 bytes consumed regardless of offset");
        }
    
        @Test
        @DisplayName("Test server GUID reference")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

                    final SmbComReadAndX request = new SmbComReadAndX(file.fid, fp, r, null);
                    if (file.type == SmbFile.TYPE_NAMED_PIPE) {
                        request.minCount = request.maxCount = request.remaining = 1024;
                    }
                    file.send(request, response);
                } catch (final SmbException se) {
                    if (file.type == SmbFile.TYPE_NAMED_PIPE && se.getNtStatus() == NtStatus.NT_STATUS_PIPE_BROKEN) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top