Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 347 for 0xff (0.02 sec)

  1. src/main/java/jcifs/smb1/netbios/NodeStatusResponse.java

        int readRDataWireFormat(final byte[] src, int srcIndex) {
            final int start = srcIndex;
            numberOfNames = src[srcIndex] & 0xFF;
            final int namesLength = numberOfNames * 18;
            final int statsLength = rDataLength - namesLength - 1;
            numberOfNames = src[srcIndex] & 0xFF;
            srcIndex++;
            // gotta read the mac first so we can populate addressArray with it
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

    internal fun BufferedSink.writeMedium(medium: Int) {
      writeByte(medium.ushr(16) and 0xff)
      writeByte(medium.ushr(8) and 0xff)
      writeByte(medium and 0xff)
    }
    
    @Throws(IOException::class)
    internal fun BufferedSource.readMedium(): Int =
      (
        readByte() and 0xff shl 16
          or (readByte() and 0xff shl 8)
          or (readByte() and 0xff)
      )
    
    /** Run [block] until it either throws an [IOException] or completes. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java

            NdrSmall ndrSmall = new NdrSmall(-1); // -1 & 0xFF = 255
            assertEquals(255, ndrSmall.value, "Negative value should be masked to its unsigned byte equivalent.");
        }
    
        @Test
        void testConstructor_overflowValue() {
            // Test with a value exceeding byte range, expecting it to be masked
            NdrSmall ndrSmall = new NdrSmall(256); // 256 & 0xFF = 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ntlmssp/Type1MessageTest.java

            assertTrue(messageBytes.length >= 12);
            // Message type should be 1 (little endian)
            assertEquals(1, messageBytes[8] & 0xFF);
            assertEquals(0, messageBytes[9] & 0xFF);
            assertEquals(0, messageBytes[10] & 0xFF);
            assertEquals(0, messageBytes[11] & 0xFF);
        }
    
        @Test
        @DisplayName("Should handle Unicode negotiation flag")
        void testUnicodeNegotiation() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. src/archive/tar/strconv.go

    		// data bytes and treat the value as an unsigned number.
    		var inv byte // 0x00 if positive or zero, 0xff if negative
    		if b[0]&0x40 != 0 {
    			inv = 0xff
    		}
    
    		var x uint64
    		for i, c := range b {
    			c ^= inv // Inverts c only if inv is 0xff, otherwise does nothing
    			if i == 0 {
    				c &= 0x7f // Ignore signal bit in first byte
    			}
    			if (x >> 56) > 0 {
    				p.err = ErrHeader // Integer overflow
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt

     * fills, it is doubled.
     */
    @Suppress("NAME_SHADOWING")
    object Hpack {
      private const val PREFIX_4_BITS = 0x0f
      private const val PREFIX_5_BITS = 0x1f
      private const val PREFIX_6_BITS = 0x3f
      private const val PREFIX_7_BITS = 0x7f
    
      private const val SETTINGS_HEADER_TABLE_SIZE = 4_096
    
      /**
       * The decoder has ultimate control of the maximum size of the dynamic table but we can choose
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/InfoTest.java

            for (int i = 0; i < 8; i++) {
                buf[offset + i] = (byte) ((val >>> (8 * i)) & 0xFF);
            }
        }
    
        private static void writeShort(byte[] buf, int offset, int val) {
            buf[offset] = (byte) (val & 0xFF);
            buf[offset + 1] = (byte) ((val >>> 8) & 0xFF);
        }
    
        @Test
        void testTrans2QueryPathBasicInfoParsing() throws Exception {
            byte[] buffer = new byte[34];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            assertEquals(0, response.getCommand());
    
            // Verify we can change the subcommand
            response.setSubCommand((byte) 0xFF);
            assertEquals((byte) 0xFF, response.getSubCommand());
    
            // But creating a new instance should have the correct subcommand
            Trans2SetFileInformationResponse newResponse = new Trans2SetFileInformationResponse(config);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

            void testMockImplementation() {
                NegotiateContextRequest mockRequest = mock(NegotiateContextRequest.class);
                when(mockRequest.getContextType()).thenReturn(0xFF);
    
                assertEquals(0xFF, mockRequest.getContextType());
                verify(mockRequest).getContextType();
            }
        }
    
        @Nested
        @DisplayName("Edge Cases and Error Conditions")
        class EdgeCasesTests {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/NbtAddress.java

         */
    
        public byte[] getAddress() {
            final byte[] addr = new byte[4];
    
            addr[0] = (byte) (address >>> 24 & 0xFF);
            addr[1] = (byte) (address >>> 16 & 0xFF);
            addr[2] = (byte) (address >>> 8 & 0xFF);
            addr[3] = (byte) (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
    - 31.7K bytes
    - Viewed (0)
Back to top