- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,011 for Decode (0.16 sec)
-
src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java
SMBUtil.writeInt4(messageLength, buffer, bufferIndex + 12); System.arraycopy(testData, 0, buffer, bufferIndex + 16, testData.length); // Decode int bytesDecoded = response.decode(buffer, bufferIndex, buffer.length); // Verify results assertEquals(namedPipeState, response.getNamedPipeState()); assertEquals(readDataAvailable, response.getReadDataAvailable());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/lsarpc.java
@Override public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_referent(sid, 1); if (sid != null) { _dst = _dst.deferred; sid.encode(_dst); } } @Override public void decode(NdrBuffer _src) throws NdrException { _src.align(4);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 42.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
SMBUtil.writeInt2(20, buffer, 42); // byteCount int length = testBlock.decode(buffer, 0); assertTrue(length > 0); assertEquals(4, testBlock.wordCount); assertNull(testBlock.getAndx()); } @Test @DisplayName("Test decode with retain payload") void testDecodeWithRetainPayload() throws SMBProtocolDecodingException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
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) -
guava/src/com/google/common/io/BaseEncoding.java
* hex.lowerCase(); // does nothing! * return hex.decode("deadbeef"); // throws an IllegalArgumentException * } * * <p>It is guaranteed that {@code encoding.decode(encoding.encode(x))} is always equal to {@code * x}, but the reverse does not necessarily hold. * * <table> * <caption>Encodings</caption> * <tr> * <th>Encoding * <th>Alphabet * <th>{@code char:byte} ratio * <th>Default padding * <th>Comments
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Oct 06 14:51:47 UTC 2025 - 41.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java
assertEquals(FileSystemInformation.FS_SIZE_INFO, fileFsSizeInfo.getFileSystemInformationClass()); } } @Nested @DisplayName("Decode Method Tests") class DecodeMethodTests { @Test @DisplayName("Should decode buffer with typical values correctly") void shouldDecodeBufferWithTypicalValues() throws SMBProtocolDecodingException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java
assertEquals(FileSystemInformation.FS_FULL_SIZE_INFO, fileFsFullSizeInfo.getFileSystemInformationClass()); } } @Nested @DisplayName("Decode Method Tests") class DecodeMethodTests { @Test @DisplayName("Should decode buffer with typical values correctly") void shouldDecodeBufferWithTypicalValues() throws SMBProtocolDecodingException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.5K bytes - Viewed (0) -
src/main/java/jcifs/Decodable.java
/** * Interface for objects that can be decoded from a byte buffer. * This interface provides methods for deserializing data from SMB protocol messages. * * @author mbechler */ public interface Decodable { /** * Decode data from a byte buffer * * @param buffer the byte buffer containing the data to decode * @param bufferIndex the starting index in the bufferRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
} @Test void testEncode() throws NdrException { // Test the encode method long testValue = 987654321098765L; NdrHyper ndrHyper = new NdrHyper(testValue); // Call the encode method with the mocked NdrBuffer ndrHyper.encode(mockNdrBuffer); // Verify that enc_ndr_hyper was called exactly once with the correct valueRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0)