Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 347 for 0xff (0.02 sec)

  1. src/test/java/jcifs/smb/MIENameTest.java

            buf[i++] = (byte) ((oidLen >>> 8) & 0xFF);
            buf[i++] = (byte) (oidLen & 0xFF);
            // MECH_OID
            System.arraycopy(oidDer, 0, buf, i, oidLen);
            i += oidLen;
            // NAME_LEN (4 bytes big-endian)
            buf[i++] = (byte) ((nameLen >>> 24) & 0xFF);
            buf[i++] = (byte) ((nameLen >>> 16) & 0xFF);
            buf[i++] = (byte) ((nameLen >>> 8) & 0xFF);
            buf[i++] = (byte) (nameLen & 0xFF);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Encdec.java

         */
        public static int enc_uint32be(final int i, final byte[] dst, int di) {
            dst[di] = (byte) (i >> 24 & 0xFF);
            di++;
            dst[di++] = (byte) (i >> 16 & 0xFF);
            dst[di++] = (byte) (i >> 8 & 0xFF);
            dst[di] = (byte) (i & 0xFF);
            return 4;
        }
    
        /**
         * Encodes a 16-bit unsigned integer in little-endian byte order.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

                assertEquals((byte) 0xFF, originalFileId[0], "Original FileId should remain unchanged");
                assertArrayEquals(
                        new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF,
                                (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF },
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

            dstIndex += this.wordCount + 1;
            this.wordCount /= 2;
            dst[start] = (byte) (this.wordCount & 0xFF);
    
            this.byteCount = writeBytesWireFormat(dst, dstIndex + 2);
            dst[dstIndex] = (byte) (this.byteCount & 0xFF);
            dstIndex++;
            dst[dstIndex++] = (byte) (this.byteCount >> 8 & 0xFF);
            dstIndex += this.byteCount;
    
            /*
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            assertEquals((byte) ((value >> 8) & 0xFF), dst[0]);
            assertEquals((byte) (value & 0xFF), dst[1]);
        }
    
        @Test
        @DisplayName("writeInt2 with offset should write at correct position")
        void testWriteInt2WithOffset() {
            byte[] dst = new byte[10];
            dst[2] = (byte) 0xFF; // Mark position
            dst[3] = (byte) 0xFF;
    
            SessionServicePacket.writeInt2(0xABCD, dst, 4);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

            dstIndex += wordCount + 1;
            wordCount /= 2;
            dst[start] = (byte) (wordCount & 0xFF);
    
            byteCount = writeBytesWireFormat(dst, dstIndex + 2);
            dst[dstIndex] = (byte) (byteCount & 0xFF);
            dstIndex++;
            dst[dstIndex++] = (byte) (byteCount >> 8 & 0xFF);
            dstIndex += byteCount;
    
            /* Normally, without intervention everything would batch
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/DcerpcConstantsTest.java

                    assertTrue(flag >= 0x00 && flag <= 0xFF,
                            String.format("Fragment flag 0x%02X should be in valid byte range 0x00-0xFF", flag));
                }
            }
    
            @Test
            @DisplayName("RPC packet flags should be within byte range")
            void testRpcPacketFlagsRange() {
                // Verify that RPC packet flags are within byte range (0x00-0xFF)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/Name.java

                if (tmp[i] != (byte) ' ') {
                    length = i + 1;
                }
            }
            try {
                name = new String(tmp, 0, length, Name.OEM_ENCODING);
            } catch (final UnsupportedEncodingException uee) {}
            hexCode = (src[srcIndex + TYPE_OFFSET] & 0xFF) - 0x41 << 4;
            hexCode |= (src[srcIndex + TYPE_OFFSET + 1] & 0xFF) - 0x41 & 0x0F;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

            buffer[index++] = (byte) (flags & 0xFF);
            buffer[index++] = (byte) ((flags >> 8) & 0xFF);
    
            // Session ID (8 bytes) - little-endian
            buffer[index++] = (byte) (testSessionId & 0xFF);
            buffer[index++] = (byte) ((testSessionId >> 8) & 0xFF);
            buffer[index++] = (byte) ((testSessionId >> 16) & 0xFF);
            buffer[index++] = (byte) ((testSessionId >> 24) & 0xFF);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/PacTest.java

            baos.write(value & 0xFF);
            baos.write((value >> 8) & 0xFF);
            baos.write((value >> 16) & 0xFF);
            baos.write((value >> 24) & 0xFF);
        }
    
        private void writeLittleEndianLong(ByteArrayOutputStream baos, long value) {
            for (int i = 0; i < 8; i++) {
                baos.write((int) ((value >> (i * 8)) & 0xFF));
            }
        }
    
        @Test
        void testEmptyPac() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top