- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,908 for vscode (0.21 sec)
-
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
FileRenameInformation2 original = new FileRenameInformation2(fileName, replaceIfExists); // Encode byte[] buffer = new byte[200]; int bytesWritten = original.encode(buffer, 0); // Decode FileRenameInformation2 decoded = new FileRenameInformation2(); int bytesRead = decoded.decode(buffer, 0, bytesWritten); // Verify round trip assertEquals(bytesWritten, bytesRead);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java
verify(mockNdrBuffer).enc_ndr_long(123); verify(mockSidT).encode(mockNdrBuffer); } @Test @DisplayName("Should decode output correctly") void testDecodeOut() throws NdrException { // Given: Open domain message with mocked return value samr.SamrOpenDomain message = new samr.SamrOpenDomain(mockPolicyHandle, 123, mockSidT, mockPolicyHandle);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
// When: Decoding the value ndrShort.decode(mockBuffer); // Then: Should set the negative value directly (no masking on decode) verify(mockBuffer).dec_ndr_short(); assertEquals(negativeValue, ndrShort.value); } @Test @DisplayName("Should decode large value correctly") void testDecodeLargeValue() throws NdrException {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/netdfs.java
@Override public void encode(NdrBuffer _dst) throws NdrException { _dst.align(4); _dst.enc_ndr_referent(this.entry_path, 1); if (this.entry_path != null) { _dst = _dst.deferred; _dst.enc_ndr_string(this.entry_path); } } @Override public void decode(NdrBuffer _src) throws NdrException {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 21.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java
// Encode to buffer byte[] buffer = new byte[1024]; NdrBuffer encodeBuffer = new NdrBuffer(buffer, 0); domainInfo.encode(encodeBuffer); // Decode from buffer NdrBuffer decodeBuffer = new NdrBuffer(buffer, 0); lsarpc.LsarDomainInfo decodedInfo = new lsarpc.LsarDomainInfo(); decodedInfo.decode(decodeBuffer);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K 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) -
src/main/java/jcifs/dcerpc/msrpc/lsarpc.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 44.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
} /** * When given a buffer with sufficient length, decode performs * the inverse of encode. */ @Test void decodeFromEncodedBuffer() throws NdrException { NdrShort ns = new NdrShort(123); // masked value 123 (already fits in 8 bits) buf.reset(); ns.encode(buf); // Reset buffer to start for decoding buf.reset();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/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java
@Override public void encode(NdrBuffer dst) throws NdrException { if (throwOnEncode) { throw new NdrException("Failed to encode"); } // Simulate some encoding activity on the buffer dst.enc_ndr_long(123); } @Override public void decode(NdrBuffer src) throws NdrException { if (throwOnDecode) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
byte[] largeBuffer = new byte[1000]; // Act int smallEncodedSize = context.encode(smallBuffer, 0); int largeEncodedSize = context.encode(largeBuffer, 500); // Assert // encode() returns actual bytes written (6), not size() value (8) assertEquals(6, smallEncodedSize); // actual: 2 bytes count + 2*2 bytes for ciphers
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K bytes - Viewed (0)