- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 284 for 0xFF (0.06 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
assertEquals(0, response.getCommand()); // Verify we can change the subcommand response.setSubCommand((byte) 0xFF); assertEquals((byte) 0xFF, response.getSubCommand()); // But creating a new instance should have the correct subcommand Trans2SetFileInformationResponse newResponse = new Trans2SetFileInformationResponse(config);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java
NdrSmall ndrSmall = new NdrSmall(-1); // -1 & 0xFF = 255 assertEquals(255, ndrSmall.value, "Negative value should be masked to its unsigned byte equivalent."); } @Test void testConstructor_overflowValue() { // Test with a value exceeding byte range, expecting it to be masked NdrSmall ndrSmall = new NdrSmall(256); // 256 & 0xFF = 0
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type1MessageTest.java
assertTrue(messageBytes.length >= 12); // Message type should be 1 (little endian) assertEquals(1, messageBytes[8] & 0xFF); assertEquals(0, messageBytes[9] & 0xFF); assertEquals(0, messageBytes[10] & 0xFF); assertEquals(0, messageBytes[11] & 0xFF); } @Test @DisplayName("Should handle Unicode negotiation flag") void testUnicodeNegotiation() { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/archive/tar/strconv.go
// data bytes and treat the value as an unsigned number. var inv byte // 0x00 if positive or zero, 0xff if negative if b[0]&0x40 != 0 { inv = 0xff } var x uint64 for i, c := range b { c ^= inv // Inverts c only if inv is 0xff, otherwise does nothing if i == 0 { c &= 0x7f // Ignore signal bit in first byte } if (x >> 56) > 0 {Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Sep 08 17:08:20 UTC 2025 - 9.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/InfoTest.java
for (int i = 0; i < 8; i++) { buf[offset + i] = (byte) ((val >>> (8 * i)) & 0xFF); } } private static void writeShort(byte[] buf, int offset, int val) { buf[offset] = (byte) (val & 0xFF); buf[offset + 1] = (byte) ((val >>> 8) & 0xFF); } @Test void testTrans2QueryPathBasicInfoParsing() throws Exception { byte[] buffer = new byte[34];
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/nego/NegotiateContextRequestTest.java
void testMockImplementation() { NegotiateContextRequest mockRequest = mock(NegotiateContextRequest.class); when(mockRequest.getContextType()).thenReturn(0xFF); assertEquals(0xFF, mockRequest.getContextType()); verify(mockRequest).getContextType(); } } @Nested @DisplayName("Edge Cases and Error Conditions") class EdgeCasesTests {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
byte[] quad = textToNumericFormatV4(dottedQuad); if (quad == null) { return null; } String penultimate = Integer.toHexString(((quad[0] & 0xff) << 8) | (quad[1] & 0xff)); String ultimate = Integer.toHexString(((quad[2] & 0xff) << 8) | (quad[3] & 0xff)); return initialPart + penultimate + ":" + ultimate; } private static byte parseOctet(String ipString, int start, int end) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 47.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java
for (int i = 0; i < dst.length; i++) { dst[i] = (byte) (i & 0xFF); } int startIndex = 5; int bytesWritten = notifyChange.writeSetupWireFormat(dst, startIndex); // Check that bytes before startIndex are unchanged for (int i = 0; i < startIndex; i++) { assertEquals((byte) (i & 0xFF), dst[i]); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
*/ public byte[] getAddress() { final byte[] addr = new byte[4]; addr[0] = (byte) (address >>> 24 & 0xFF); addr[1] = (byte) (address >>> 16 & 0xFF); addr[2] = (byte) (address >>> 8 & 0xFF); addr[3] = (byte) (address & 0xFF); return addr; } /** * To convert this address to an <code>InetAddress</code>. *Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
final byte[] addr = localInetAddress.getAddress(); localHostname = "JCIFS" + (addr[2] & 0xFF) + "_" + (addr[3] & 0xFF) + "_" + Hexdump.toHexString((int) (Math.random() * 0xFF), 2); } /* * Create an NbtAddress for the local interface with * the name deduced above possibly with scope applied and
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0)