- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 57 for Encodable (1.77 sec)
-
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 arrayRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.4K bytes - Viewed (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);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (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);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (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 setRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequest.java
*/ package jcifs.internal.smb2.ioctl; import jcifs.Encodable; import jcifs.internal.util.SMBUtil; /** * SMB2 Validate Negotiate Info request data structure. This structure is used to validate * that the negotiated SMB2 dialect matches what was originally negotiated. * * @author mbechler * */ public class ValidateNegotiateInfoRequest implements Encodable { private final int capabilities;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FsctlPipeWaitRequest.java
import jcifs.Encodable; import jcifs.internal.util.SMBUtil; /** * File System Control Code (FSCC) request for pipe wait operations. * Implements the FSCTL_PIPE_WAIT control code used to wait for a named pipe * to become available when attempting to connect to a busy pipe. * * @author mbechler */ public class FsctlPipeWaitRequest implements Encodable { private final byte[] nameBytes;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (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() */ @OverrideRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.7K bytes - Viewed (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. *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.2K bytes - Viewed (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");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/LockingAndXRange.java
* License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.internal.smb1.com; import jcifs.Decodable; import jcifs.Encodable; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; /** * Represents a byte range for SMB1 locking and unlocking operations. *
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.1K bytes - Viewed (0)