- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 799 for decode (0.15 sec)
-
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
void testPad8() { testMessage.encode(new byte[1024], 0); // After header is written, padding depends on position int headerStart = testMessage.getHeaderStart(); assertEquals(0, headerStart); // Should start at 0 } } @Nested @DisplayName("Encode/Decode Tests") class EncodeDecodeTests { @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java
// When - Decode FileBasicInfo decodedInfo = new FileBasicInfo(); int bytesDecoded = decodedInfo.decode(buffer, 0, bytesEncoded); // Then assertEquals(40, bytesEncoded); assertEquals(36, bytesDecoded); // decode returns 36, encode returns 40 assertEquals(originalInfo.getCreateTime(), decodedInfo.getCreateTime());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java
enc = encoding; } try { url = URLDecoder.decode(url, enc); } catch (final Exception e) { // Failed to decode URL, using original URL as-is if (getLogger().isDebugEnabled()) { getLogger().debug("Failed to decode URL with encoding {}: {}", enc, url, e); } } }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Dec 11 09:47:03 UTC 2025 - 14.1K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java
} /** * Decodes the specified (portion of a) URL. <strong>Note:</strong> This decoder assumes that ISO-8859-1 is used to * convert URL-encoded bytes to characters. * * @param url The URL to decode, may be <code>null</code>. * @return The decoded URL or <code>null</code> if the input was <code>null</code>. */ private static String decode(String url) { String decoded = url;Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/util/Encdec.java
* @return the decoded float value */ public static float dec_floatbe(final byte[] src, final int si) { return Float.intBitsToFloat(dec_uint32be(src, si)); } /* * Encode and decode doubles */ /** * Encodes a double value in little-endian byte order. * * @param d the double value to encode * @param dst the destination byte arrayRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
void testDecode() throws NdrException { // Test the decode method long decodedValue = 112233445566778L; NdrHyper ndrHyper = new NdrHyper(0); // Initialize with a dummy value // Configure the mock NdrBuffer to return a specific value when dec_ndr_hyper is called when(mockNdrBuffer.dec_ndr_hyper()).thenReturn(decodedValue); // Call the decode method with the mocked NdrBuffer
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/Encdec.java
* Decodes a 32-bit unsigned integer from little-endian byte order. * * @param src the source byte array * @param si the starting index in the source array * @return the decoded integer value */ public static int dec_uint32le(final byte[] src, final int si) { return src[si] & 0xFF | (src[si + 1] & 0xFF) << 8 | (src[si + 2] & 0xFF) << 16 | (src[si + 3] & 0xFF) << 24; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/QueryNetworkInterfaceInfoResponse.java
public void setInterfaces(List<NetworkInterfaceInfo> interfaces) { this.interfaces = interfaces; } /** * {@inheritDoc} * * @see jcifs.Decodable#decode(byte[], int, int) */ @Override public int decode(byte[] buffer, int bufferIndex, int len) { int start = bufferIndex; int end = start + len; interfaces.clear();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java
byte[] buffer = new byte[originalContext.size()]; originalContext.encode(buffer, 0); // Create a new context and decode DirectoryLeaseContext decodedContext = new DirectoryLeaseContext(new Smb2LeaseKey(), 0, DirectoryCacheScope.IMMEDIATE_CHILDREN); decodedContext.decode(buffer, 0, buffer.length); // Verify decoded valuesRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 10.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java
static class MaxCodePoint { final int value; /** * Convert the input string to a code point. Accepts regular decimal numerals, hex strings, and * some symbolic names meaningful to humans. */ private static int decode(String userFriendly) { try { return Integer.decode(userFriendly); } catch (NumberFormatException ignored) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 5.3K bytes - Viewed (0)