Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 347 for 0xff (0.04 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComFindClose2Test.java

            assertArrayEquals(new byte[] { (byte) 0xFF, (byte) 0xFF }, dst, "Negative sid should wrap to 0xFFFF");
        }
    
        @Test
        void testWriteParameterWordsWithOffset() {
            byte[] dst = new byte[5];
            int written = instance.writeParameterWordsWireFormat(dst, 3);
            assertEquals(2, written);
            assertEquals((byte) (TEST_SID & 0xFF), dst[3]);
            assertEquals((byte) ((TEST_SID >> 8) & 0xFF), dst[4]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

        static int readInt2(final byte[] src, final int srcIndex) {
            return ((src[srcIndex] & 0xFF) << 8) + (src[srcIndex + 1] & 0xFF);
        }
    
        static int readInt4(final byte[] src, final int srcIndex) {
            return ((src[srcIndex] & 0xFF) << 24) + ((src[srcIndex + 1] & 0xFF) << 16) + ((src[srcIndex + 2] & 0xFF) << 8)
                    + (src[srcIndex + 3] & 0xFF);
        }
    
        static int readNameTrnId(final byte[] src, final int srcIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/NameServicePacket.java

        static int readInt2(final byte[] src, final int srcIndex) {
            return ((src[srcIndex] & 0xFF) << 8) + (src[srcIndex + 1] & 0xFF);
        }
    
        static int readInt4(final byte[] src, final int srcIndex) {
            return ((src[srcIndex] & 0xFF) << 24) + ((src[srcIndex + 1] & 0xFF) << 16) + ((src[srcIndex + 2] & 0xFF) << 8)
                    + (src[srcIndex + 3] & 0xFF);
        }
    
        static int readNameTrnId(final byte[] src, final int srcIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            byte[] dst = new byte[4];
    
            SMB1SigningDigest.writeUTime(mockConfig, 0L, dst, 0);
    
            assertEquals((byte) 0xFF, dst[0]);
            assertEquals((byte) 0xFF, dst[1]);
            assertEquals((byte) 0xFF, dst[2]);
            assertEquals((byte) 0xFF, dst[3]);
        }
    
        @Test
        @DisplayName("Test writeUTime with max time")
        void testWriteUTimeWithMaxTime() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/SocksProxy.kt

        val version = fromSource.readByte() and 0xff
        if (version != VERSION_5) throw ProtocolException("unexpected version: $version")
    
        val command = fromSource.readByte() and 0xff
    
        val reserved = fromSource.readByte() and 0xff
        if (reserved != 0) throw ProtocolException("unexpected reserved: $reserved")
    
        val addressType = fromSource.readByte() and 0xff
        val toAddress =
          when (addressType) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/NbtAddress.java

         */
        public byte[] getAddress() {
            final byte[] addr = new byte[4];
            addr[0] = (byte) (this.address >>> 24 & 0xFF);
            addr[1] = (byte) (this.address >>> 16 & 0xFF);
            addr[2] = (byte) (this.address >>> 8 & 0xFF);
            addr[3] = (byte) (this.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
    - 15.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            request.writeBytesWireFormat(buffer, 0);
    
            // Control code is at offset 4 (4 bytes)
            int encodedControlCode = (buffer[4] & 0xFF) | ((buffer[5] & 0xFF) << 8) | ((buffer[6] & 0xFF) << 16) | ((buffer[7] & 0xFF) << 24);
            assertEquals(testControlCode, encodedControlCode);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java

            // Then
            assertEquals(6, result);
            assertEquals(fid, (dst[1] << 8) | (dst[0] & 0xFF));
            assertEquals(Trans2SetFileInformation.SMB_FILE_BASIC_INFO, (dst[3] << 8) | (dst[2] & 0xFF));
            assertEquals(0, (dst[5] << 8) | (dst[4] & 0xFF));
        }
    
        @Test
        void testWriteDataWireFormat() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/dtyp/ACETest.java

            testBuffer[0] = (byte) 0xFF; // Non-zero = Deny
            testBuffer[1] = (byte) 0xFF; // All flags
            testBuffer[2] = (byte) 0xFF; // Size low byte
            testBuffer[3] = (byte) 0xFF; // Size high byte
            testBuffer[4] = (byte) 0xFF; // Access mask all bits
            testBuffer[5] = (byte) 0xFF;
            testBuffer[6] = (byte) 0xFF;
            testBuffer[7] = (byte) 0xFF;
    
            // Add minimal SID data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            int impLevel = (buffer[4] & 0xFF) | ((buffer[5] & 0xFF) << 8) | ((buffer[6] & 0xFF) << 16) | ((buffer[7] & 0xFF) << 24);
            assertEquals(Smb2CreateRequest.SMB2_IMPERSONATION_LEVEL_IMPERSONATION, impLevel);
    
            // Check default desired access (0x00120089) at offset 24
            int desiredAccess = (buffer[24] & 0xFF) | ((buffer[25] & 0xFF) << 8) | ((buffer[26] & 0xFF) << 16) | ((buffer[27] & 0xFF) << 24);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
Back to top