- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 467 for decoded (0.04 sec)
-
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
SMBUtil.writeInt2(0, buffer, SmbConstants.SMB1_HEADER_LENGTH + 1); assertThrows(SMBProtocolDecodingException.class, () -> { testBlock.decode(buffer, 0); }); } @Test @DisplayName("Test decode with retain payload") void testDecodeWithRetainPayload() throws SMBProtocolDecodingException { testBlock.retainPayload();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java
int bytesEncoded = originalInfo.encode(buffer, 0); // 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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
assertNull(response.getInfo()); } @Test void testReadDataWireFormat_EmptyBuffer() throws Exception { // Test with empty dataCount but decode still processes buffer // Note: SmbInfoAllocation.decode() doesn't check len parameter, always reads 20 bytes response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/DecodableTest.java
@Test @DisplayName("Should define decode method") void testDecodeMethod() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[10]; int bufferIndex = 0; int len = 10; when(mockDecodable.decode(buffer, bufferIndex, len)).thenReturn(10); // When int decodedLength = mockDecodable.decode(buffer, bufferIndex, len); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 2.7K bytes - Viewed (0) -
android/guava/src/com/google/thirdparty/publicsuffix/TrieParser.java
* @param encoded The serialized trie. * @param start An index in the encoded serialized trie to begin reading characters from. * @param builder A map builder to which all entries will be added. * @return The number of characters consumed from {@code encoded}. */ private static int doParseTrieToBuilder( Deque<CharSequence> stack, CharSequence encoded, int start,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java
m.ptype = 0; // Request type NdrBuffer buf = new NdrBuffer(new byte[1024], 0); m.encode(buf); buf.setIndex(0); // Decode will throw exception as ptype 0 is not a valid response type assertThrows(NdrException.class, () -> m.decode(buf)); } @Test void testRoundTripEncodeDecodeForResponseType() throws Exception { // Create a properly formatted response message
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
.thenReturn(0); // cancel count message.decode(mockBuffer); assertEquals(DcerpcConstants.RPC_PT_RESPONSE, message.ptype); assertEquals(100, message.alloc_hint); } @Test @DisplayName("decode should handle FAULT ptype correctly") void testDecodeFaultPtype() throws NdrException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.3K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
return "[" + toAddrString(ip) + "]"; } return toAddrString(ip); } /** * Returns an InetAddress representing the literal IPv4 or IPv6 host portion of a URL, encoded in * the format specified by RFC 3986 section 3.2.2. * * <p>This method is similar to {@link InetAddresses#forString(String)}, however, it requires that * IPv6 addresses are surrounded by square brackets.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 47.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
} @Test @DisplayName("Should decode sync message correctly") void testDecodeSync() throws SMBProtocolDecodingException { byte[] buffer = createValidSyncMessage(); testMessage.setBytesRead(10); int len = testMessage.decode(buffer, 0); assertTrue(len > 0); assertFalse(testMessage.isAsync());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0)