Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 344 for 0xff (0.01 sec)

  1. src/main/java/jcifs/smb1/util/Hexdump.java

            size = size % 2 == 0 ? size / 2 : size / 2 + 1;
            for (int i = 0, j = 0; i < size; i++) {
                c[j] = HEX_DIGITS[src[i] >> 4 & 0x0F];
                j++;
                if (j == c.length) {
                    break;
                }
                c[j++] = HEX_DIGITS[src[i] & 0x0F];
            }
            return new String(c);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTransportImpl.java

                switch (this.sbuf[0] & 0xFF) {
                case SessionServicePacket.POSITIVE_SESSION_RESPONSE:
                    if (log.isDebugEnabled()) {
                        log.debug("session established ok with " + this.address);
                    }
                    return;
                case SessionServicePacket.NEGATIVE_SESSION_RESPONSE:
                    final int errorCode = this.in.read() & 0xFF;
                    switch (errorCode) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SpnegoContextTest.java

            assertEquals(0, cap.getValue().length, "Optimistic token must be zero-length");
        }
    
        @ParameterizedTest
        @ValueSource(bytes = { 0x00, 0x7F, (byte) 0xFF })
        @DisplayName("initSecContext throws on invalid token type")
        void testInitSecContextInvalidTokenType(byte firstByte) throws Exception {
            SpnegoContext ctx = newContext();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/ASN1UtilTest.java

            int tagNo = ASN1Util.readTagNumber(s, 0x1F);
            assertEquals(31, tagNo);
        }
    
        @Test
        void testReadTagNumber_MultiByte() throws IOException {
            // Multi-byte tag (e.g., 80)
            InputStream s = new ByteArrayInputStream(new byte[] { (byte) 0x81, 0x00 });
            int tagNo = ASN1Util.readTagNumber(s, 0x1F);
            assertEquals(128, tagNo);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

            int readDataAvailable = Integer.MAX_VALUE;
            int numberOfMessages = Integer.MAX_VALUE;
            int messageLength = Integer.MAX_VALUE;
            byte[] testData = { 0x7F, 0x7F, 0x7F, 0x7F };
    
            // Write values to buffer
            SMBUtil.writeInt4(namedPipeState, buffer, bufferIndex);
            SMBUtil.writeInt4(readDataAvailable, buffer, bufferIndex + 4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

        @Test
        @DisplayName("Decode unknown AvPair type as generic AvPair")
        void testDecodeUnknownType() throws CIFSException {
            byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            int unknownType = 0xFF;
            byte[] avPairData = createAvPairData(unknownType, data);
            byte[] eolData = createEolData();
    
            byte[] fullData = new byte[avPairData.length + eolData.length];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            SMBUtil.writeTime(time, buffer, bufferIndex);
            bufferIndex += 8;
            // serverTimeZone
            buffer[bufferIndex++] = (byte) 0x80;
            buffer[bufferIndex++] = (byte) 0xFF;
            // encryptionKeyLength
            buffer[bufferIndex++] = 8;
    
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
            assertEquals(34, bytesRead);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

                e.fileNameLength = readInt4(buffer, bufferIndex + 60);
                //      e.eaSize = readInt4( buffer, bufferIndex + 64 );
                //      e.shortNameLength = buffer[bufferIndex + 68] & 0xFF;
    
                /* With NT, the shortName is in Unicode regardless of what is negotiated.
                 */
    
                //      e.shortName = readString( buffer, bufferIndex + 70, e.shortNameLength );
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

            @DisplayName("Should not modify destination buffer")
            void testWriteBytesWireFormatDoesNotModifyBuffer() {
                // Given
                byte[] dst = new byte[100];
                Arrays.fill(dst, (byte) 0xFF);
                byte[] originalDst = dst.clone();
    
                // When
                response.writeBytesWireFormat(dst, 0);
    
                // Then
                assertArrayEquals(originalDst, dst);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/witness/WitnessRpcClient.java

            StringBuilder sb = new StringBuilder("WITNESS-");
            for (int i = 0; i < Math.min(contextHandle.length, 8); i++) {
                sb.append(String.format("%02X", contextHandle[i] & 0xFF));
            }
            sb.append("-").append(shareName.hashCode());
    
            return sb.toString();
        }
    
        /**
         * Checks if the client is connected to the witness service.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top