- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for estimation (1.36 sec)
-
src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java
assertArrayEquals(largeTestData, decompressed); } @Test @DisplayName("Test compression ratio estimation") public void testCompressionRatioEstimation() { double ratio = compressionService.estimateCompressionRatio(testData, CompressionService.COMPRESSION_LZ77); assertTrue(ratio >= 0.0 && ratio <= 1.0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.1K bytes - Viewed (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
} @Test void testEncodeDestinationTooSmall() { // Test when destination array is too small byte[] data = { 0x01, 0x02, 0x03 }; ByteEncodable encodable = new ByteEncodable(data, 0, 3); byte[] dest = new byte[2]; // Destination is too small // Expect IndexOutOfBoundsException from System.arraycopyRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/EncodableTest.java
assertEquals(0, written, "encode() must return zero for zero length"); for (byte b : dst) { assertEquals((byte) 0x7A, b, "Destination should remain unchanged"); } } @Test @DisplayName("encode() throws when destination too small") void encodeThrowsWhenDestinationTooSmall() { byte[] src = makeSeq(5); Encodable enc = new ByteEncodable(src, 0, 5);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/util/SMBUtil.java
private SMBUtil() { } /** * Writes a 16-bit integer value to a byte array in little-endian format * @param val the value to write * @param dst the destination byte array * @param dstIndex the starting index in the destination array */ public static void writeInt2(final long val, final byte[] dst, int dstIndex) { dst[dstIndex] = (byte) val; dstIndex++;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8K bytes - Viewed (0) -
src/main/java/jcifs/util/Hexdump.java
* * @param val the integer value to convert to hexadecimal characters * @param dst the destination character array to write the hex digits into * @param dstIndex the starting index in the destination array * @param size the number of hex digits to write (will be left-padded with zeros) */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/MarkdownExtractor.java
document.accept(new AbstractVisitor() { @Override public void visit(final Link link) { final String destination = link.getDestination(); if (StringUtil.isNotBlank(destination)) { links.add(destination); } super.visit(link); } }); if (!links.isEmpty()) {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 03:46:53 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java
assertEquals(expectedBytes.length, bytesWritten, "The number of bytes written should match the length of the dialect string."); // Verify the content of the destination array assertArrayEquals(expectedBytes, dst, "The destination array should contain the ASCII bytes of the dialect string."); } /** * Test the readParameterWordsWireFormat method. * This method should do nothing and return 0.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4K bytes - Viewed (0) -
src/main/java/jcifs/Encodable.java
* * @author mbechler */ public interface Encodable { /** * Encodes this object into the specified byte array. * * @param dst the destination byte array to encode into * @param dstIndex the starting index in the destination array * @return encoded length */ int encode(byte[] dst, int dstIndex); /** * Returns the size in bytes that this object will occupy when encoded.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/Smb2LeaseKey.java
*/ public byte[] getKey() { return Arrays.copyOf(key, LEASE_KEY_SIZE); } /** * Write the lease key to a buffer * * @param dst destination buffer * @param dstIndex starting index in destination buffer */ public void encode(byte[] dst, int dstIndex) { System.arraycopy(key, 0, dst, dstIndex, LEASE_KEY_SIZE); } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 3.3K bytes - Viewed (0) -
src/main/java/jcifs/netbios/SessionServicePacket.java
} int type, length; /** * Writes the packet to the specified byte array in wire format. * * @param dst the destination byte array to write to * @param dstIndex the starting index in the destination array * @return written bytes */ public int writeWireFormat(final byte[] dst, final int dstIndex) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0)