Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 284 for 0xFF (0.02 sec)

  1. src/main/java/jcifs/dcerpc/ndr/NdrShort.java

        public int value;
    
        /**
         * Constructs an NdrShort with the specified value.
         *
         * @param value the short integer value
         */
        public NdrShort(final int value) {
            this.value = value & 0xFF;
        }
    
        @Override
        public void encode(final NdrBuffer dst) throws NdrException {
            dst.enc_ndr_short(this.value);
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/dcerpc/ndr/NdrShort.java

        public int value;
    
        /**
         * Constructs an NdrShort with the specified value.
         *
         * @param value the short integer value
         */
        public NdrShort(final int value) {
            this.value = value & 0xFF;
        }
    
        @Override
        public void encode(final NdrBuffer dst) throws NdrException {
            dst.enc_ndr_short(value);
        }
    
        @Override
        public void decode(final NdrBuffer src) throws NdrException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

        @Test
        @DisplayName("Test readDataWireFormat with unsupported information level")
        void testReadDataWireFormatWithUnsupportedLevel() throws SMBProtocolDecodingException {
            byte unsupportedLevel = (byte) 0xFF;
            response = new Trans2QueryPathInformationResponse(mockConfig, unsupportedLevel);
    
            byte[] buffer = new byte[100];
            response.setDataCount(buffer.length);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                }
                switch (sbuf[0] & 0xFF) {
                case SessionServicePacket.POSITIVE_SESSION_RESPONSE:
                    if (LogStream.level >= 4) {
                        log.println("session established ok with " + address);
                    }
                    return;
                case SessionServicePacket.NEGATIVE_SESSION_RESPONSE:
                    final int errorCode = in.read() & 0xFF;
                    switch (errorCode) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                // Given
                byte[] buffer = new byte[10];
                // Write -1 which will be read as 65535 unsigned
                buffer[0] = (byte) 0xFF;
                buffer[1] = (byte) 0xFF;
    
                // When & Then
                SMBProtocolDecodingException exception =
                        assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            byte[] buffer = new byte[100];
            int bufferIndex = 50;
    
            // Set test values
            int testCapabilities = 0xABCDEF00;
            byte[] testGuid = new byte[16];
            Arrays.fill(testGuid, (byte) 0xFF);
            int testSecurityMode = 0x0001;
            int testDialect = 0x0202;
    
            // Write to buffer
            SMBUtil.writeInt4(testCapabilities, buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/netbios/SocketInputStream.java

            tmp = new byte[TMP_BUFFER_SIZE];
        }
    
        @Override
        public synchronized int read() throws IOException {
            if (read(tmp, 0, 1) < 0) {
                return -1;
            }
            return tmp[0] & 0xFF;
        }
    
        @Override
        public synchronized int read(final byte[] b) throws IOException {
            return read(b, 0, b.length);
        }
    
        /* This method will not return until len bytes have been read
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

            assertEquals("Pattern_V1", CompressionNegotiateContext.getAlgorithmName(CompressionNegotiateContext.COMPRESSION_PATTERN_V1));
            assertTrue(CompressionNegotiateContext.getAlgorithmName(0xFF).startsWith("Unknown"));
        }
    
        @Test
        @DisplayName("Test empty algorithms context")
        public void testEmptyAlgorithms() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

        }
    
        @Test
        @DisplayName("setFileId should update file ID")
        void testSetFileId() throws Exception {
            byte[] newFileId = new byte[16];
            Arrays.fill(newFileId, (byte) 0xFF);
    
            request.setFileId(newFileId);
    
            Field fileIdField = Smb2CloseRequest.class.getDeclaredField("fileId");
            fileIdField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/url/-Url.kt

          } else {
            encodedCharBuffer.writeString(input, i, i + Character.charCount(codePoint), charset)
          }
    
          while (!encodedCharBuffer.exhausted()) {
            val b = encodedCharBuffer.readByte().toInt() and 0xff
            writeByte('%'.code)
            writeByte(HEX_DIGITS[b shr 4 and 0xf].code)
            writeByte(HEX_DIGITS[b and 0xf].code)
          }
        } else {
          // This character doesn't need encoding. Just copy it over.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.3K bytes
    - Viewed (0)
Back to top