Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 1,385 for 1byte (0.02 sec)

  1. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            assertEquals((byte) 0xEF, buffer[0]); // Little-endian
            assertEquals((byte) 0xCD, buffer[1]);
            assertEquals((byte) 0xAB, buffer[2]);
            assertEquals((byte) 0x89, buffer[3]);
            assertEquals((byte) 0x67, buffer[4]);
            assertEquals((byte) 0x45, buffer[5]);
            assertEquals((byte) 0x23, buffer[6]);
            assertEquals((byte) 0x01, buffer[7]);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

        }
    
        @Test
        @DisplayName("Test writeBytesWireFormat returns 0")
        void testWriteBytesWireFormat() {
            response = new Smb2QueryDirectoryResponse(mockConfig, (byte) 0x03);
            byte[] dst = new byte[1024];
            int dstIndex = 0;
    
            int result = response.writeBytesWireFormat(dst, dstIndex);
    
            assertEquals(0, result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

            void testWriteBytesWireFormat() {
                byte[] buffer = new byte[1024];
                int result = echoResponse.writeBytesWireFormat(buffer, 0);
                assertEquals(0, result);
            }
    
            @Test
            @DisplayName("Should handle different buffer positions")
            void testWriteBytesWireFormatDifferentPositions() {
                byte[] buffer = new byte[1024];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            long endOfFile = 0x1234567890ABCDEFL;
            FileEndOfFileInformation info = new FileEndOfFileInformation(endOfFile);
    
            // Encode multiple times to verify consistency
            byte[] buffer1 = new byte[8];
            byte[] buffer2 = new byte[8];
    
            int bytes1 = info.encode(buffer1, 0);
            int bytes2 = info.encode(buffer2, 0);
    
            assertEquals(8, bytes1);
            assertEquals(8, bytes2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

            dstIndex += 2;
            dst[dstIndex] = (byte) 0x00;
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00;
            dst[dstIndex++] = (byte) 0x00;
            dst[dstIndex++] = (byte) 0x00;
            writeInt4(capabilities, dst, dstIndex);
            dstIndex += 4;
    
            return dstIndex - start;
        }
    
        @Override
        int writeBytesWireFormat(final byte[] dst, int dstIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SigningDigest.java

         */
        boolean verify(final byte[] data, final int offset, final ServerMessageBlock response) {
            update(macSigningKey, 0, macSigningKey.length);
            int index = offset;
            update(data, index, SmbConstants.SIGNATURE_OFFSET);
            index += SmbConstants.SIGNATURE_OFFSET;
            final byte[] sequence = new byte[8];
            ServerMessageBlock.writeInt4(response.signSeq, sequence, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/fscc/FileBasicInfo.java

        }
    
        @Override
        public long getSize() {
            return 0L;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Decodable#decode(byte[], int, int)
         */
        @Override
        public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
            this.createTime = SMBUtil.readTime(buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                byte[] buffer = new byte[100];
    
                boolean result = response.verifySignature(buffer, 0, 100);
    
                assertTrue(result);
            }
    
            @Test
            @DisplayName("Should verify signature on error when secure negotiate required")
            void testVerifySignatureErrorWithSecureNegotiate() {
                byte[] buffer = new byte[100];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/spnego/NegTokenInit.java

         * @param mechanismListMIC the MIC over the mechanism list
         */
        public NegTokenInit(final ASN1ObjectIdentifier[] mechanisms, final int contextFlags, final byte[] mechanismToken,
                final byte[] mechanismListMIC) {
            setMechanisms(mechanisms);
            setContextFlags(contextFlags);
            setMechanismToken(mechanismToken);
            setMechanismListMIC(mechanismListMIC);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

         * Encode this interface info for FSCTL_QUERY_NETWORK_INTERFACE_INFO response
         *
         * @return encoded bytes
         */
        public byte[] encode() {
            // NETWORK_INTERFACE_INFO structure per MS-SMB2 2.2.32.5.1
            // Total size: 152 bytes
            byte[] buffer = new byte[Smb2ChannelCapabilities.NETWORK_INTERFACE_INFO_SIZE];
            ByteBuffer bb = ByteBuffer.wrap(buffer).order(ByteOrder.LITTLE_ENDIAN);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
Back to top