Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 290 for bzero (0.02 sec)

  1. src/main/java/jcifs/dcerpc/UnicodeString.java

     *
     */
    public class UnicodeString extends rpc.unicode_string {
    
        boolean zterm;
    
        /**
         * Constructs a UnicodeString with zero termination option.
         *
         * @param zterm
         *            whether the string should be zero terminated
         */
        public UnicodeString(final boolean zterm) {
            this.zterm = zterm;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacUnicodeStringTest.java

        }
    
        /**
         * Tests the {@link PacUnicodeString#check(String)} method with a null string when the pointer is zero.
         * Note: Current implementation throws NullPointerException for null strings.
         */
        @Test
        void testCheck_withNullStringAndZeroPointer() {
            // A zero pointer indicates a null string
            PacUnicodeString pacString = new PacUnicodeString((short) 0, (short) 0, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/av/AvFlagsTest.java

            // Test with zero
            byte[] zeroBytes = new byte[] { 0x00, 0x00, 0x00, 0x00 };
            AvFlags zeroAvFlags = new AvFlags(zeroBytes);
            assertNotNull(zeroAvFlags, "AvFlags object should not be null for zero bytes");
            assertEquals(0, zeroAvFlags.getFlags(), "Flags should be 0 for zero bytes");
    
            // Test with negative integer (two's complement)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            // Test with zero length buffer
            buffer.putShort(0, (short) 0);
            buffer.putShort(2, (short) 0);
            buffer.putInt(4, 8); // Offset doesn't matter for zero length
            result = NtlmMessage.readSecurityBuffer(data, 0);
            assertEquals(0, result.length, "Should return empty array for zero length buffer.");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

            }
    
            @Test
            @DisplayName("Should handle zero value correctly")
            void testConstructorZero() {
                // Given/When: Creating NdrShort with zero
                NdrShort ndrShort = new NdrShort(0);
    
                // Then: Value should be zero
                assertEquals(0, ndrShort.value);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionTest.java

            smbComNtTransaction.dataOffset = 200;
    
            byte[] dst = new byte[100];
            smbComNtTransaction.writeParameterWordsWireFormat(dst, 0);
    
            // Check that offsets are zero when counts are zero
            assertEquals(0, SmbComTransaction.readInt4(dst, 23), "parameterOffset should be 0 when parameterCount is 0");
            assertEquals(0, SmbComTransaction.readInt4(dst, 31), "dataOffset should be 0 when dataCount is 0");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/util/SMBUtilTest.java

                assertEquals((byte) 0xFF, dst[i]);
            }
    
            // Test with zero
            SMBUtil.writeInt8(0L, dst, 16);
            for (int i = 16; i < 24; i++) {
                assertEquals((byte) 0x00, dst[i]);
            }
        }
    
        @Test
        void testReadTime() {
            byte[] src = new byte[16];
    
            // Test with zero time
            SMBUtil.writeInt8(0L, src, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/EncodableTest.java

                    Arguments.of(makeSeq(10), 2, 5, 3), // middle slice, non-zero dst index
                    Arguments.of(makeSeq(4), 4, 0, 0), // zero-length slice at end
                    Arguments.of(makeSeq(16), 7, 3, 0), // small slice from middle
                    Arguments.of(makeSeq(16), 0, 0, 5) // zero-length with non-zero dst index
            );
        }
    
        // Creates a deterministic byte sequence [0,1,2,...,n-1]
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/UnicodeString.java

     * This class wraps strings for use in RPC calls with optional zero termination.
     */
    public class UnicodeString extends rpc.unicode_string {
    
        boolean zterm;
    
        /**
         * Constructs a UnicodeString with zero termination option.
         *
         * @param zterm whether the string should be zero terminated
         */
        public UnicodeString(final boolean zterm) {
            this.zterm = zterm;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            assertEquals(0, dst[35]);
        }
    
        @Test
        @DisplayName("Test writeParameterWordsWireFormat with zero parameter count")
        void testWriteParameterWordsWireFormatZeroParameters() {
            byte[] dst = new byte[256];
    
            // Set up transaction with zero parameters
            transaction.setTotalParameterCount(0);
            transaction.setTotalDataCount(100);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top