- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 753 for Decode (0.07 sec)
-
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
} @Test fun `cannot decode malformed utc time`() { val bytes = "170d3139313231362333303231305a".decodeHex() assertFailsWith<ProtocolException> { Adapters.UTC_TIME.fromDer(bytes) }.also { expected -> assertThat(expected).hasMessage("Failed to parse UTCTime 191216#30210Z") } } @Test fun `cannot decode generalized time with offset`() {Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 31.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SecurityDescriptor.java
* @param len the length of data to decode * @throws IOException if an I/O error occurs during decoding */ public SecurityDescriptor(final byte[] buffer, final int bufferIndex, final int len) throws IOException { this.decode(buffer, bufferIndex, len); } /** * Decodes a security descriptor from a byte buffer. *Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/rpcTest.java
// When/Then: Should throw NdrException assertThrows(NdrException.class, () -> policyHandle.encode(mockNdrBuffer)); } @Test @DisplayName("Should decode policy handle correctly") void testPolicyHandleDecode() throws NdrException { // Given: A policy handle to decode into rpc.policy_handle policyHandle = new rpc.policy_handle();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
name = "BOOLEAN", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 1L, codec = object : BasicDerAdapter.Codec<Boolean> { override fun decode(reader: DerReader): Boolean = reader.readBoolean() override fun encode( writer: DerWriter, value: Boolean, ) = writer.writeBoolean(value) }, ) val INTEGER_AS_LONG = BasicDerAdapter(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
// Decode fileBothDirectoryInfo.decode(buffer, 0, buffer.length); // Verify - the decode method strips null termination, so filename should match assertEquals(expectedFilename, fileBothDirectoryInfo.getFilename()); } @Test @DisplayName("Test decode with null-terminated non-Unicode filename")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java
} @Test @DisplayName("Test decode with minimum valid length") void testDecodeMinimumValidLength() throws SMBProtocolDecodingException { // Prepare minimum valid buffer - exactly 24 bytes byte[] buffer = new byte[28]; Arrays.fill(buffer, 0, 24, (byte) 0xAA); // Decode with len = 24 (minimum valid) int bytesConsumed = response.decode(buffer, 0, 24);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java
byte[] dst = new byte[20]; int writtenSize = range.encode(dst, 0); assertEquals(10, writtenSize, "Range size when not large should be 10"); // create a new empty range and decode LockingAndXRange decoded = new LockingAndXRange(false); int decodedSize = decoded.decode(dst, 0, dst.length); assertEquals(10, decodedSize, "Decode should return size 10"); assertEquals(99, decoded.getPid());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
NdrShort decoded = new NdrShort(0); decoded.decode(buf); assertEquals(123, decoded.value, "decoded value should equal original"); } /** * Verify that encode invokes NdrBuffer.enc_ndr_short via a mocked * (spied) buffer. */ @Test void encodeWithSpiedBufferCallsEncMethod() throws NdrException { NdrShort ns = new NdrShort(42);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/dtyp/SecurityDescriptor.java
} /** * Decodes a security descriptor from a byte buffer. * * @param buffer the byte buffer containing the security descriptor data * @param bufferIndex the starting offset in the buffer * @param len the length of data to decode * @return the number of bytes decoded * @throws SMBProtocolDecodingException if the data cannot be properly decoded */ @OverrideRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java
// The actual implementation reassigns _dst = _dst.deferred inside encode(), so we can't verify the exact buffer verify(objAttr.root_directory).encode(any(NdrBuffer.class)); verify(objAttr.object_name).encode(any(NdrBuffer.class)); verify(objAttr.security_quality_of_service).encode(any(NdrBuffer.class)); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 60.8K bytes - Viewed (0)