Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,693 for byte2 (0.02 sec)

  1. src/test/java/jcifs/smb1/util/HexdumpTest.java

            // Test with negative byte values
            byte[] data2 = { (byte) 0xFF, (byte) 0xFE, (byte) 0x80, 0x7F };
            assertEquals("FF", Hexdump.toHexString(data2, 0, 2)); // 2 chars = 1 byte
            assertEquals("FFF", Hexdump.toHexString(data2, 0, 3)); // 3 chars = 1.5 bytes (rounds up to 2)
            assertEquals("FFFE", Hexdump.toHexString(data2, 0, 4)); // 4 chars = 2 bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Encdec.java

            dst[di] = (byte) (s & 0xFF);
            di++;
            dst[di] = (byte) (s >> 8 & 0xFF);
            return 2;
        }
    
        /**
         * Encodes a 32-bit unsigned integer in little-endian byte order.
         *
         * @param i the integer value to encode
         * @param dst the destination byte array
         * @param di the starting index in the destination array
         * @return the number of bytes written (4)
    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/io/Smb2FlushRequestTest.java

            // Test with file ID having maximum byte values
            byte[] maxFileId = new byte[16];
            Arrays.fill(maxFileId, (byte) 0xFF);
            Smb2FlushRequest maxRequest = new Smb2FlushRequest(mockConfig, maxFileId);
    
            byte[] buffer = new byte[256];
            int written = maxRequest.writeBytesWireFormat(buffer, 0);
    
            assertEquals(24, written);
    
            byte[] copiedFileId = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/StringsTest.java

            @Test
            @DisplayName("fromUNIBytes should decode UTF-16LE bytes to string")
            void testFromUNIBytes() {
                // Given
                byte[] bytes = TEST_STRING.getBytes(StandardCharsets.UTF_16LE);
    
                // When
                String result = Strings.fromUNIBytes(bytes, 0, bytes.length);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/ntlmssp/av/AvSingleHost.java

        public AvSingleHost(final Configuration cfg) {
            this(new byte[8], cfg.getMachineId());
        }
    
        /**
         * Constructs an AvSingleHost with custom data and machine ID
         *
         * @param customData custom data for the single host (8 bytes)
         * @param machineId the machine identifier (32 bytes)
         */
        public AvSingleHost(final byte[] customData, final byte[] machineId) {
            this(encode(customData, machineId));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

      internal const val OPCODE_FLAG_CONTROL = 8
    
      /**
       * Byte 1 flag for whether the payload data is masked.
       *
       * If this flag is set, the next four
       * bytes represent the mask key. These bytes appear after any additional bytes specified by [B1_MASK_LENGTH].
       */
      internal const val B1_FLAG_MASK = 128
    
      /**
       * Byte 1 mask for the payload length.
       *
       * If this value is [PAYLOAD_SHORT], the next two
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Ints.java

       *
       * @throws IllegalArgumentException if {@code bytes} has fewer than 4 elements
       */
      public static int fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
        return fromBytes(bytes[0], bytes[1], bytes[2], bytes[3]);
      }
    
      /**
       * Returns the {@code int} value whose byte representation is the given 4 bytes, in big-endian
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

        public static final byte TRANS2_SET_FILE_INFORMATION = (byte) 0x08;
    
        /**
         * Network share enumeration subcommand
         */
        public static final byte NET_SHARE_ENUM = (byte) 0x00;
        /**
         * Network server enumeration subcommand version 2
         */
        public static final byte NET_SERVER_ENUM2 = (byte) 0x68;
        /**
         * Network server enumeration subcommand version 3
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java

            long expectedTimestamp = -1L; // Represents all bits set to 1 for an 8-byte long
            byte[] rawBytes = new byte[8];
            SMBUtil.writeInt8(expectedTimestamp, rawBytes, 0);
            AvTimestamp avTimestamp = new AvTimestamp(rawBytes);
    
            assertEquals(expectedTimestamp, avTimestamp.getTimestamp());
        }
    
        /**
         * Test round-trip conversion: long -> bytes -> long.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
        byte[] b = new byte[data.length];
        in.readFully(b);
        assertEquals(Bytes.asList(data), Bytes.asList(b));
      }
    
      public void testReadUnsignedByte_eof() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0]));
        assertThrows(EOFException.class, () -> in.readUnsignedByte());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top