- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 60 for encodable (0.41 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 array
Registered: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 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 set
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.7K 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() */ @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.7K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.1K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (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(
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvCopychunk.java
*/ package jcifs.internal.smb2.ioctl; import jcifs.Encodable; import jcifs.internal.util.SMBUtil; /** * SMB2 SRV_COPYCHUNK data structure. This structure represents a single chunk specification * for server-side copy operations. * * @author mbechler * */ public class SrvCopychunk implements Encodable { private final long sourceOffset; private final long targetOffset;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopy.java
*/ package jcifs.internal.smb2.ioctl; import jcifs.Encodable; import jcifs.internal.util.SMBUtil; /** * SMB2 SRV_COPYCHUNK_COPY data structure. This structure is used to perform server-side * copy operations with multiple chunk specifications. * * @author mbechler * */ public class SrvCopychunkCopy implements Encodable { private final byte[] sourceKey;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0)