- Sort Score
- Result 10 results
- Languages All
Results 261 - 270 of 320 for 0x03 (0.01 sec)
-
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
} @ParameterizedTest @DisplayName("Should read different oplock levels correctly") @ValueSource(bytes = { 0x00, 0x01, 0x02, 0x08, (byte) 0xFF }) void testReadDifferentOplockLevels(byte oplockLevel) throws Exception { byte[] buffer = createValidOplockBreakBuffer(oplockLevel, createTestData(16));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
assertEquals(2, written, "setup packet should write 2 bytes"); assertEquals(SmbComTransaction.TRANS2_QUERY_FS_INFORMATION, buf[0], "first byte should be subCommand"); assertEquals((byte) 0x00, buf[1], "second byte should be zero"); } @Test @DisplayName("writeParametersWireFormat writes the information level as 2-byte little endian") void testWriteParametersWireFormat() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
void setup() throws GeneralSecurityException { digest = new Smb2SigningDigest(sessionKey, Smb2Constants.SMB2_DIALECT_0202, null); data = new byte[128]; Arrays.fill(data, (byte) 0x00); // Set up mock messages request = mock(CommonServerMessageBlock.class); response = mock(CommonServerMessageBlock.class); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NetServerEnum2.java
subCommand = NET_SERVER_ENUM2; // not really true be used by upper logic name = "\\PIPE\\LANMAN"; maxParameterCount = 8; maxDataCount = 16384; maxSetupCount = (byte) 0x00; setupCount = 0; timeout = 5000; } @Override void reset(final int key, final String lastName) { super.reset(); this.lastName = lastName; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.6K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosToken.java
} int readLow = stream.read() & 0xff; int readHigh = stream.read() & 0xff; int read = (readHigh << 8) + readLow; if (read != 0x01) { throw new PACDecodingException("Malformed kerberos token"); } ASN1TaggedObject mechToken = ASN1Util.as(ASN1TaggedObject.class, stream.readObject());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java
// 2 bytes for fileAttributes, 4 bytes for lastWriteTime, 4 bytes for fileSize byte[] buffer = new byte[20]; // File Attributes: 0x0010 (Directory) buffer[0] = 0x10; buffer[1] = 0x00; // Last Write Time (UTime): A sample timestamp in milliseconds long sampleTimeMillis = 1672531200000L; // Represents a specific date in milliseconds
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/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
request = new Smb2CreateRequest(mockConfig, "test.txt"); request.setSecurityFlags((byte) 0x01); // Verify through writeBytesWireFormat byte[] buffer = new byte[1024]; request.writeBytesWireFormat(buffer, 0); assertEquals((byte) 0x01, buffer[2]); } @Test @DisplayName("Test oplock level setter") void testSetRequestedOplockLevel() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt
assertThat(b).isEqualTo(2.toByte()) } } }, ) } @Test fun dataFrameNotAssociateWithStream() { val payload = byteArrayOf(0x01, 0x02) writeMedium(frame, payload.size) frame.writeByte(Http2.TYPE_DATA) frame.writeByte(FLAG_NONE) frame.writeInt(0) frame.write(payload) assertFailsWith<IOException> {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 28.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComWrite.java
return dstIndex - start; } @Override protected int writeBytesWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; dst[dstIndex] = (byte) 0x01; /* BufferFormat */ dstIndex++; SMBUtil.writeInt2(this.count, dst, dstIndex); /* DataLength? */ dstIndex += 2; System.arraycopy(this.b, this.off, dst, dstIndex, this.count);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
byte[] bufferData = buf.getBuffer(); assertEquals((byte) 0xCD, bufferData[startIndex + alignmentBytes], "Least significant byte should be first"); assertEquals((byte) 0x00, bufferData[startIndex + alignmentBytes + 1], "Most significant byte should be second"); } /** * When given a buffer with sufficient length, decode performs * the inverse of encode. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0)