Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 71 for 0x1234567 (0.2 sec)

  1. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

            @DisplayName("Should encode basic lock structure correctly")
            void testBasicEncoding() {
                long offset = 0x1234567890ABCDEFL;
                long length = 0xFEDCBA0987654321L;
                int flags = 0x12345678;
    
                lock = new Smb2Lock(offset, length, flags);
                int encoded = lock.encode(buffer, 0);
    
                assertEquals(24, encoded);
    
                // Verify offset (8 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

        }
    
        @Test
        @DisplayName("Test readParametersWireFormat reads length correctly")
        void testReadParametersWireFormat() throws Exception {
            byte[] buffer = new byte[100];
            int expectedLength = 0x12345678;
    
            // Write length in little-endian format
            SMBUtil.writeInt4(expectedLength, buffer, 0);
    
            int result = response.readParametersWireFormat(buffer, 0, buffer.length);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            void testCompleteEncodingStructure() {
                // Given
                long sourceOffset = 0x1234567890ABCDEFL;
                long targetOffset = 0xFEDCBA0987654321L;
                int length = 0x12345678;
                SrvCopychunk chunk = new SrvCopychunk(sourceOffset, targetOffset, length);
                byte[] buffer = new byte[EXPECTED_SIZE];
    
                // When
                int bytesWritten = chunk.encode(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            // Prepare test data
            byte[] buffer = new byte[64];
            int bufferIndex = 10;
    
            // Set capabilities (4 bytes)
            int testCapabilities = 0x12345678;
            SMBUtil.writeInt4(testCapabilities, buffer, bufferIndex);
    
            // Set server GUID (16 bytes)
            byte[] testGuid = new byte[16];
            for (int i = 0; i < 16; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  5. src/archive/tar/strconv_test.go

    		{"032033\x00 ", 032033, true},
    		{"320330\x00 ", 0320330, true},
    		{"0000660\x00 ", 0660, true},
    		{"\x00 0000660\x00 ", 0660, true},
    		{"0123456789abcdef", 0, false},
    		{"0123456789\x00abcdef", 0, false},
    		{"01234567\x0089abcdef", 342391, true},
    		{"0123\x7e\x5f\x264123", 0, false},
    	}
    
    	for _, v := range vectors {
    		var p parser
    		got := p.parseNumeric([]byte(v.in))
    		ok := (p.err == nil)
    		if ok != v.ok {
    			if v.ok {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 15K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

        }
    
        @Test
        @DisplayName("Test desired access setter")
        void testSetDesiredAccess() {
            request = new Smb2CreateRequest(mockConfig, "test.txt");
    
            int access = 0x12345678;
            request.setDesiredAccess(access);
    
            byte[] buffer = new byte[1024];
            request.writeBytesWireFormat(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        assertCrc(0xf3dbd4fe, "1234567890".getBytes(UTF_8));
        assertCrc(0xBFE92A83, "23456789".getBytes(UTF_8));
      }
    
      public void testAgainstSimplerImplementation() {
        Random r = new Random(1234567);
        for (int length = 0; length < 1000; length++) {
          byte[] bytes = new byte[length];
          r.nextBytes(bytes);
          assertCrc(referenceCrc(bytes), bytes);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

        @DisplayName("Test decode with typical values")
        void testDecodeWithTypicalValues() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = new byte[22];
            int idFileSystem = 0x12345678;
            int sectPerAlloc = 8;
            long alloc = 1000000L;
            long free = 500000L;
            int bytesPerSect = 512;
    
            // Encode test data
            int offset = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

        void testReadBytesWireFormatReserved2Field() throws Exception {
            // Given
            byte[] buffer = new byte[256];
            int bodyStart = 0;
            int dataOffsetFromHeader = 80;
            int reserved2Value = 0x12345678;
    
            // Write structure
            SMBUtil.writeInt2(17, buffer, bodyStart);
            buffer[bodyStart + 2] = (byte) dataOffsetFromHeader;
            SMBUtil.writeInt4(10, buffer, bodyStart + 4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

        void testGetFileIndex() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = createValidBuffer("file.txt", "FILE~1.TXT", true);
            int expectedFileIndex = 0x12345678;
            SMBUtil.writeInt4(expectedFileIndex, buffer, 4);
    
            // Decode
            fileBothDirectoryInfo.decode(buffer, 0, buffer.length);
    
            // Verify
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
Back to top