Search Options

Results per page
Sort
Preferred Languages
Advance

Results 431 - 440 of 1,385 for BYTE (0.1 sec)

  1. src/test/java/jcifs/util/StringsTest.java

            @Test
            @DisplayName("findTermination should find null termination in single-byte encoding")
            void testFindTermination() {
                // Given
                String testString = "Hello";
                byte[] stringBytes = testString.getBytes(StandardCharsets.UTF_8);
                byte[] bufferWithTermination = new byte[stringBytes.length + 1]; // +1 for null termination
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. src/bytes/iter_test.go

    		for range SplitSeq(benchInputHard, nil) {
    		}
    	}
    }
    
    func BenchmarkSplitSeqSingleByteSeparator(b *testing.B) {
    	sep := []byte("/")
    	for range b.N {
    		for range SplitSeq(benchInputHard, sep) {
    		}
    	}
    }
    
    func BenchmarkSplitSeqMultiByteSeparator(b *testing.B) {
    	sep := []byte("hello")
    	for range b.N {
    		for range SplitSeq(benchInputHard, sep) {
    		}
    	}
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 06 02:08:23 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

            index += SmbConstants.SIGNATURE_OFFSET;
            final byte[] sequence = new byte[8];
            SMBUtil.writeInt4(msg.getSignSeq(), sequence, 0);
            update(sequence, 0, sequence.length);
            index += 8;
            if (msg.getCommand() == ServerMessageBlock.SMB_COM_READ_ANDX) {
                /*
                 * SmbComReadAndXResponse reads directly from the stream into separate byte[] b.
                 */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

                        new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF,
                                (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF },
                        originalFileId, "Original FileId array should remain all 0xFF");
            }
        }
    
        @Nested
        @DisplayName("Constant Relationships")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComReadAndXResponse.java

    package jcifs.smb1.smb1;
    
    class SmbComReadAndXResponse extends AndXServerMessageBlock {
    
        byte[] b;
        int off, dataCompactionMode, dataLength, dataOffset;
    
        SmbComReadAndXResponse() {
        }
    
        SmbComReadAndXResponse(final byte[] b, final int off) {
            this.b = b;
            this.off = off;
        }
    
        void setParam(final byte[] b, final int off) {
            this.b = b;
            this.off = off;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/CommonServerMessageBlock.java

        /**
         * Decode message data from the given byte array
         *
         * @param buffer the byte array containing the message data
         * @param bufferIndex the starting index in the buffer
         * @return message length
         * @throws SMBProtocolDecodingException if decoding fails
         */
        int decode(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            // Test reading parameter words from wire format
            response = new SmbComQueryInformationResponse(mockConfig, 0L);
    
            // Prepare test data
            byte[] buffer = new byte[256];
            int bufferIndex = 0;
    
            // Set wordCount to non-zero
            setFieldValue(response, "wordCount", 10);
    
            // Write test data to buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

         * @throws GeneralSecurityException
         *             if the signing algorithm cannot be initialized
         *
         */
        public Smb2SigningDigest(final byte[] sessionKey, final int dialect, final byte[] preauthIntegrityHash)
                throws GeneralSecurityException {
            switch (dialect) {
            case Smb2Constants.SMB2_DIALECT_0202:
            case Smb2Constants.SMB2_DIALECT_0210:
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            // Given
            byte[] buffer = new byte[2048];
            int offset = 0;
    
            setHeaderStart(response, 64);
    
            // Create a long filename
            StringBuilder longName = new StringBuilder();
            for (int i = 0; i < 100; i++) {
                longName.append("test");
            }
            String fileName = longName.toString();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. 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)
Back to top