- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 117 for 0x02FF (0.04 seconds)
-
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseStateTest.java
void testLeaseStateConstants() { assertEquals(0x00, Smb2LeaseState.SMB2_LEASE_NONE); assertEquals(0x01, Smb2LeaseState.SMB2_LEASE_READ_CACHING); assertEquals(0x02, Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING); assertEquals(0x04, Smb2LeaseState.SMB2_LEASE_WRITE_CACHING); assertEquals(0x03, Smb2LeaseState.SMB2_LEASE_READ_HANDLE);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 00:16:17 GMT 2025 - 5.2K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComTransaction.java
private static final int PRIMARY_SETUP_OFFSET = 61; private static final int SECONDARY_PARAMETER_OFFSET = 51; private static final int DISCONNECT_TID = 0x01; private static final int ONE_WAY_TRANSACTION = 0x02; private static final int PADDING_SIZE = 2; private final int flags = 0x00; private int fid; private int pad = 0; private int pad1 = 0; private boolean hasMore = true;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 10.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
request.setFileId(testFileId); request.setData(data, 512, 1024); request.setOffset(4096L); request.setRemainingBytes(2048); request.setWriteFlags(0x02); // Calculate expected size int expectedSize = ((Smb2Constants.SMB2_HEADER_LENGTH + 48 + 1024 + 7) / 8) * 8; assertEquals(expectedSize, request.size());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.4K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcQueryInformationPolicyTest.java
// Assert assertEquals(expectedFlags, queryPolicy.getFlags()); // Binary check for individual flags assertEquals(0x03, queryPolicy.getFlags()); // 0x01 | 0x02 = 0x03 } @Test void getOpnum_shouldReturnCorrectValue() { // Arrange short level = 1; queryPolicy = new MsrpcQueryInformationPolicy(mockPolicyHandle, level, mockNdrObject);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.6K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrOpenAliasTest.java
java.lang.reflect.Field flagsField = jcifs.dcerpc.DcerpcMessage.class.getDeclaredField("flags"); flagsField.setAccessible(true); assertEquals(0x01 | 0x02, flagsField.get(msrpcSamrOpenAlias), "flags should be initialized to DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG"); } catch (NoSuchFieldException | IllegalAccessException e) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.5K bytes - Click Count (0) -
src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java
// Test successful reading of 6 bytes from the input stream. // The content of these bytes is not critical for this test, only that 6 bytes are read. byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 }; // Sample 6 bytes ByteArrayInputStream bais = new ByteArrayInputStream(data); SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
void testReadAtDifferentOffsets(int offset) throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[offset + 20]; SMBUtil.writeInt2(16, buffer, offset); buffer[offset + 2] = 0x02; // PIPE buffer[offset + 3] = 0; SMBUtil.writeInt4(0x1234, buffer, offset + 4); SMBUtil.writeInt4(0x5678, buffer, offset + 8); SMBUtil.writeInt4(0x9ABC, buffer, offset + 12);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.3K bytes - Click Count (0) -
src/main/java/jcifs/netbios/NbtException.java
public static final int SUCCESS = 0; /** Name service error class */ public static final int ERR_NAM_SRVC = 0x01; /** Session service error class */ public static final int ERR_SSN_SRVC = 0x02; // name service error codes /** Format error in the name service */ public static final int FMT_ERR = 0x1; /** Server error in the name service */ public static final int SRV_ERR = 0x2;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java
class ToStringTests { @Test @DisplayName("toString with valid data produces expected format") void testToStringWithValidData() { byte[] challenge = new byte[] { (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0xFF }; UniAddress dc = mock(UniAddress.class); when(dc.toString()).thenReturn("SERVER123"); NtlmChallenge nc = new NtlmChallenge(challenge, dc);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6K bytes - Click Count (0) -
src/main/java/jcifs/netbios/NameServicePacket.java
writeInt2(this.nameTrnId, dst, dstIndex); dst[dstIndex + OPCODE_OFFSET] = (byte) ((this.isResponse ? 0x80 : 0x00) + (this.opCode << 3 & 0x78) + (this.isAuthAnswer ? 0x04 : 0x00) + (this.isTruncated ? 0x02 : 0x00) + (this.isRecurDesired ? 0x01 : 0x00)); dst[dstIndex + OPCODE_OFFSET + 1] = (byte) ((this.isRecurAvailable ? 0x80 : 0x00) + (this.isBroadcast ? 0x10 : 0x00) + (this.resultCode & 0x0F));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 11.1K bytes - Click Count (0)