- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 100 for encodable (0.09 seconds)
-
src/main/java/jcifs/Encodable.java
package jcifs; /** * Interface for objects that can be encoded to a byte buffer. * This interface provides methods for serializing data to SMB protocol messages. * * @author mbechler */ public interface Encodable { /** * Encodes this object into the specified byte array. * * @param dst the destination byte array to encode into * @param dstIndex the starting index in the destination arrayCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
request = new Smb2SetInfoRequest(mockConfig); Encodable mockInfo = mock(Encodable.class); request.setInfo(mockInfo); // Verify info object was set Field infoField; try { infoField = Smb2SetInfoRequest.class.getDeclaredField("info"); infoField.setAccessible(true); Encodable actualInfo = (Encodable) infoField.get(request);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.9K bytes - Click Count (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
ByteEncodable encodable = new ByteEncodable(data, 1, 3); // Verify size assertEquals(3, encodable.size(), "Size should be equal to the specified length"); } @Test void testEncodeBasic() { // Test basic encoding byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 }; ByteEncodable encodable = new ByteEncodable(data, 1, 3);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.5K bytes - Click Count (0) -
src/test/java/jcifs/EncodableTest.java
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import jcifs.util.ByteEncodable; @DisplayName("Encodable contract tests using ByteEncodable") class EncodableTest { // Generates a few representative slices and destination indices. static Stream<Arguments> byteEncodableArgs() { return Stream.of(Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/info/Smb2SetInfoRequest.java
* the file information to set */ public <T extends FileInformation & Encodable> void setFileInformation(final T fi) { setInfoType(Smb2Constants.SMB2_0_INFO_FILE); setFileInfoClass(fi.getFileInformationLevel()); setInfo(fi); } /** * Sets the encodable information object for this request * * @param info * the info to setCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
/** * Test that FileInformation can be used as both Decodable and Encodable */ @Test @DisplayName("Test FileInformation as both Decodable and Encodable") void testFileInformationAsDecodableAndEncodable() throws SMBProtocolDecodingException { FileInformation fileInfo = new FileEndOfFileInformation(2048L); // Test as Encodable assertTrue(fileInfo instanceof jcifs.Encodable);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
void testSizeWithInputBuffer() { request = new Smb2QueryInfoRequest(mockConfig); // Set an input buffer using reflection Encodable mockInputBuffer = mock(Encodable.class); when(mockInputBuffer.size()).thenReturn(100); try { Field inputBufferField = Smb2QueryInfoRequest.class.getDeclaredField("inputBuffer");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/nego/NegotiateContextRequest.java
*/ package jcifs.internal.smb2.nego; import jcifs.Encodable; /** * SMB2 Negotiate Context request data structure. * * This class represents negotiate contexts used in SMB 3.1.1 * for capability negotiation and security enhancements. * * @author mbechler */ public interface NegotiateContextRequest extends Encodable { /** * Gets the negotiate context type. *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequest.java
private final int controlCode; private final byte[] outputBuffer; private int maxOutputResponse; private int maxInputResponse; private int flags; private Encodable inputData; private Encodable outputData; /** * Constructs an SMB2 IOCTL request with an unspecified file ID * @param config the client configuration * @param controlCode the IOCTL control code */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 9.4K bytes - Click Count (0) -
src/main/java/jcifs/internal/fscc/FileEndOfFileInformation.java
* {@inheritDoc} * * @see jcifs.Decodable#decode(byte[], int, int) */ @Override public int decode(final byte[] buffer, final int bufferIndex, final int len) throws SMBProtocolDecodingException { this.endOfFile = SMBUtil.readInt8(buffer, bufferIndex); return 8; } /** * {@inheritDoc} * * @see jcifs.Encodable#size() */ @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.7K bytes - Click Count (0)