Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 284 for 0xFF (0.01 sec)

  1. src/test/java/jcifs/util/EncdecTest.java

            // Then
            assertEquals(value & 0xFFFFFFFFL, decoded);
            assertEquals(0x78, buffer[0] & 0xFF);
            assertEquals(0x56, buffer[1] & 0xFF);
            assertEquals(0x34, buffer[2] & 0xFF);
            assertEquals(0x12, buffer[3] & 0xFF);
        }
    
        @Test
        @DisplayName("Should encode and decode 64-bit integers")
        void testInt64Operations() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacDataInputStreamTest.java

        }
    
        @Test
        public void testReadUnsignedInt() throws IOException {
            // Little-endian 0xFFFFFFFF -> 0xFF 0xFF 0xFF 0xFF
            byte[] data = new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF };
            PacDataInputStream pdis = createInputStream(data);
            assertEquals(0xFFFFFFFFL, pdis.readUnsignedInt());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/util/SMBUtil.java

         */
        public static int readInt4(final byte[] src, final int srcIndex) {
            return (src[srcIndex] & 0xFF) + ((src[srcIndex + 1] & 0xFF) << 8) + ((src[srcIndex + 2] & 0xFF) << 16)
                    + ((src[srcIndex + 3] & 0xFF) << 24);
        }
    
        /**
         * Reads a 64-bit integer value from a byte array in little-endian format
         * @param src the source byte array
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java

       *
       * @throws IOException if an I/O error occurs
       */
      @Override
      public void writeInt(int v) throws IOException {
        out.write(0xFF & v);
        out.write(0xFF & (v >> 8));
        out.write(0xFF & (v >> 16));
        out.write(0xFF & (v >> 24));
      }
    
      /**
       * Writes a {@code long} as specified by {@link DataOutputStream#writeLong(long)}, except using
       * little-endian byte order.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/ntlmssp/NtlmMessage.java

        }
    
        static int readULong(final byte[] src, final int index) {
            return src[index] & 0xff | (src[index + 1] & 0xff) << 8 | (src[index + 2] & 0xff) << 16 | (src[index + 3] & 0xff) << 24;
        }
    
        static int readUShort(final byte[] src, final int index) {
            return src[index] & 0xff | (src[index + 1] & 0xff) << 8;
        }
    
        static byte[] readSecurityBuffer(final byte[] src, final int index) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/main/java/jcifs/smb1/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
    - 18.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top