Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for eniyan (1.59 sec)

  1. src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java

            // Read GUID components in little-endian order
            int data1 = bb.getInt(); // first 4 bytes (little-endian)
            short data2 = bb.getShort(); // next 2 bytes (little-endian)
            short data3 = bb.getShort(); // next 2 bytes (little-endian)
    
            // The last 8 bytes are read as big-endian (network byte order for the high/low parts)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

    import java.io.InputStream;
    
    /**
     * An implementation of {@link DataInput} that uses little-endian byte ordering for reading {@code
     * short}, {@code int}, {@code float}, {@code double}, and {@code long} values.
     *
     * <p><b>Note:</b> This class intentionally violates the specification of its supertype {@code
     * DataInput}, which explicitly requires big-endian byte order.
     *
     * @author Chris Nokleberg
     * @author Keith Bottner
     * @since 8.0
     */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/EncdecTest.java

            assertEquals(0x9A, buffer[3] & 0xFF);
        }
    
        @Test
        @DisplayName("Should handle big endian encoding/decoding")
        void testBigEndianOperations() {
            // Given
            int value = 0x12345678;
            byte[] buffer = new byte[4];
    
            // When - encode big endian
            Encdec.enc_uint32be(value, buffer, 0);
            long decoded = Encdec.dec_uint32be(buffer, 0);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java

    import java.io.OutputStream;
    
    /**
     * An implementation of {@link DataOutput} that uses little-endian byte ordering for writing {@code
     * char}, {@code short}, {@code int}, {@code float}, {@code double}, and {@code long} values.
     *
     * <p><b>Note:</b> This class intentionally violates the specification of its supertype {@code
     * DataOutput}, which explicitly requires big-endian byte order.
     *
     * @author Chris Nokleberg
     * @author Keith Bottner
     * @since 8.0
    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/test/java/jcifs/pac/PacDataInputStreamTest.java

        public void testReadShort() throws IOException {
            // Little-endian 0x1234 -> 0x34 0x12
            byte[] data = new byte[] { 0x34, 0x12, 0x00, 0x00 };
            PacDataInputStream pdis = createInputStream(data);
            assertEquals((short) 0x1234, pdis.readShort());
        }
    
        @Test
        public void testReadInt() throws IOException {
            // Little-endian 0x12345678 -> 0x78 0x56 0x34 0x12
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

        @Test
        @DisplayName("readULong correctly interprets little endian")
        void testReadULong() {
            byte[] a = new byte[] { (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0x04 };
            int result = NtlmMessage.readULong(a, 0);
            assertEquals(0x04030201, result, "ULong should be little‑endian");
        }
    
        @Test
        @DisplayName("readUShort correctly interprets little endian")
        void testReadUShort() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/util/SMBUtil.java

    public class SMBUtil {
    
        /**
         * Private constructor to prevent instantiation of utility class.
         */
        private SMBUtil() {
        }
    
        /**
         * Writes a 16-bit integer value to a byte array in little-endian format
         * @param val the value to write
         * @param dst the destination byte array
         * @param dstIndex the starting index in the destination array
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComWriteResponseTest.java

        }
    
        @Test
        public void testToStringContainsCount() {
            // Little-endian: count = 512 (0x0200)
            byte[] buf = new byte[12];
            buf[0] = 0x00;
            buf[1] = 0x02; // count = 512 in little-endian
            resp.readParameterWordsWireFormat(buf, 0);
            String str = resp.toString();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java

            String msg = "\u00A1\u00A2"; // two Unicode characters
            byte[] encoded = encodeUnicode(msg);
            assertEquals(4, encoded.length, "Encoded Unicode string should be 4 bytes");
    
            // Verify little-endian encoding
            assertEquals((byte) 0xA1, encoded[0], "First byte of first character");
            assertEquals((byte) 0x00, encoded[1], "Second byte of first character");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/pac/PacDataInputStream.java

         * @return the short value in little-endian format
         * @throws IOException if an I/O error occurs
         */
        public short readShort() throws IOException {
            align(2);
            return Short.reverseBytes(this.dis.readShort());
        }
    
        /**
         * Reads a 32-bit integer value with proper alignment and byte order.
         * @return the integer value in little-endian format
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top