- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 347 for 0xff (0.03 sec)
-
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java
byte[] buffer = new byte[100]; int bufferIndex = 0; // Reserved bytes buffer[bufferIndex] = (byte) 0xFF; buffer[bufferIndex + 1] = (byte) 0xFF; buffer[bufferIndex + 2] = (byte) 0xFF; // Set fields with negative values (should be treated as unsigned) SMBUtil.writeInt4(-1, buffer, bufferIndex + 3); // Should be read as 0xFFFFFFFF
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
// Arrange context = new EncryptionNegotiateContext(); byte[] buffer = new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, // Padding 0x02, 0x00, // 2 ciphers 0x01, 0x00, // AES128_CCM 0x02, 0x00 // AES128_GCM }; // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileStandardInfo.java
bufferIndex += 8; this.numberOfLinks = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.deletePending = (buffer[bufferIndex] & 0xFF) > 0; bufferIndex++; this.directory = (buffer[bufferIndex++] & 0xFF) > 0; return bufferIndex - start; } /** * {@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 - 3.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java
int readIndex = (buffer[Smb2Constants.SMB2_HEADER_LENGTH + 4] & 0xFF) | ((buffer[Smb2Constants.SMB2_HEADER_LENGTH + 5] & 0xFF) << 8) | ((buffer[Smb2Constants.SMB2_HEADER_LENGTH + 6] & 0xFF) << 16) | ((buffer[Smb2Constants.SMB2_HEADER_LENGTH + 7] & 0xFF) << 24); assertEquals(fileIndex, readIndex); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
guava/src/com/google/common/hash/LittleEndianByteArray.java
static int load32(byte[] source, int offset) { // TODO(user): Measure the benefit of delegating this to LittleEndianBytes also. return (source[offset] & 0xFF) | ((source[offset + 1] & 0xFF) << 8) | ((source[offset + 2] & 0xFF) << 16) | ((source[offset + 3] & 0xFF) << 24); } /** * Indicates that the load and store operations will be very efficient because of use of VarHandle
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:49:18 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HexdumpTest.java
assertEquals("00010203", Hexdump.toHexString(data1, 0, 8)); // 8 chars = 4 bytes // Test with negative byte values byte[] data2 = { (byte) 0xFF, (byte) 0xFE, (byte) 0x80, 0x7F }; assertEquals("FF", Hexdump.toHexString(data2, 0, 2)); // 2 chars = 1 byte assertEquals("FFF", Hexdump.toHexString(data2, 0, 3)); // 3 chars = 1.5 bytes (rounds up to 2)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/archive/tar/stat_unix.go
case "darwin", "ios": // Copied from golang.org/x/sys/unix/dev_darwin.go. major := uint32((dev >> 24) & 0xff) minor := uint32(dev & 0xffffff) h.Devmajor, h.Devminor = int64(major), int64(minor) case "dragonfly": // Copied from golang.org/x/sys/unix/dev_dragonfly.go. major := uint32((dev >> 8) & 0xff) minor := uint32(dev & 0xffff00ff) h.Devmajor, h.Devminor = int64(major), int64(minor) case "freebsd":
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Mar 15 16:01:50 UTC 2024 - 3.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
val tagClass = tagAndClass and 0b1100_0000 val constructed = (tagAndClass and 0b0010_0000) == 0b0010_0000 val tag = when (val tag0 = tagAndClass and 0b0001_1111) { 0b0001_1111 -> readVariableLengthLong() else -> tag0.toLong() } // Read the length. val length0 = source.readByte().toInt() and 0xff val length = when {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
byte[] buffer = new byte[32]; // Set large values to test 64-bit arithmetic buffer[0] = (byte) 0xFF; buffer[1] = (byte) 0xFF; // Large alloc buffer[24] = (byte) 0xFF; // Large sectPerAlloc buffer[28] = (byte) 0xFF; buffer[29] = (byte) 0xFF; // Large bytesPerSect int bytesDecoded = fileFsFullSizeInfo.decode(buffer, 0, buffer.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
int length = testBlock.encode(buffer, 0); assertTrue(length > 0); assertEquals(length, testBlock.getLength()); // SMB_HEADER is {0xFF, 'S', 'M', 'B'} byte[] expectedHeader = { (byte) 0xFF, (byte) 'S', (byte) 'M', (byte) 'B' }; assertArrayEquals(expectedHeader, java.util.Arrays.copyOfRange(buffer, 0, 4)); assertEquals(0, buffer[SmbConstants.CMD_OFFSET]);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0)