Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 207 for readInt4 (0.12 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

        @MethodSource("int32Provider")
        @DisplayName("readParameterWordsWireFormat correctly decodes 32-bit offset")
        void testReadParameterWords(int expectedInt, byte[] bytes) {
            // The implementation reads via SMBUtil.readInt4 which returns an int
            // When assigned to a long field, it gets sign-extended
            int readLen = response.readParameterWordsWireFormat(bytes, 0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            assertEquals(22, bytesEncoded);
    
            // Verify encoded data
            assertEquals(expectedAllocationSize, SMBUtil.readInt8(destinationBuffer, dstIndex));
            assertEquals(expectedEndOfFile, SMBUtil.readInt8(destinationBuffer, dstIndex + 8));
            assertEquals(expectedNumberOfLinks, SMBUtil.readInt4(destinationBuffer, dstIndex + 16));
            assertEquals(1, destinationBuffer[dstIndex + 20]); // deletePending
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

            // Verify structure size (should be 24)
            assertEquals(24, SMBUtil.readInt2(buffer, offset));
    
            // Verify Reserved1 (2 bytes at offset+2, should be 0)
            assertEquals(0, SMBUtil.readInt2(buffer, offset + 2));
    
            // Verify Reserved2 (4 bytes at offset+4, should be 0)
            assertEquals(0, SMBUtil.readInt4(buffer, offset + 4));
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/ACE.java

        int decode(final byte[] buf, int bi) {
            allow = buf[bi] == (byte) 0x00;
            bi++;
            flags = buf[bi++] & 0xFF;
            final int size = ServerMessageBlock.readInt2(buf, bi);
            bi += 2;
            access = ServerMessageBlock.readInt4(buf, bi);
            bi += 4;
            sid = new SID(buf, bi);
            return size;
        }
    
        void appendCol(final StringBuffer sb, final String str, final int width) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            assertEquals(TEST_LAST_WRITE_TIME, SMBUtil.readTime(buffer, dstIndex + 16));
            assertEquals(TEST_CHANGE_TIME, SMBUtil.readTime(buffer, dstIndex + 24));
            assertEquals(TEST_ATTRIBUTES, SMBUtil.readInt4(buffer, dstIndex + 32));
        }
    
        @Test
        @DisplayName("Test FileBasicInfo size method")
        void testFileBasicInfoSize() {
            // Given
            FileBasicInfo info = new FileBasicInfo();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                int initialFlags = 0x00000001;
                SMBUtil.writeInt4(initialFlags, data, 16);
    
                digest.sign(data, 0, data.length, request, response);
    
                int flags = SMBUtil.readInt4(data, 16);
                assertTrue((flags & ServerMessageBlock2.SMB2_FLAGS_SIGNED) != 0, "Signed flag should be set");
            }
    
            @Test
            @DisplayName("Should preserve other flags when setting signed flag")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 43.7K bytes
    - Click Count (0)
  7. src/test/java/jcifs/netbios/NameServicePacketTest.java

        void testReadInt2() {
            byte[] src = { (byte) 0x12, (byte) 0x34 };
            assertEquals(0x1234, NameServicePacket.readInt2(src, 0));
        }
    
        @Test
        void testReadInt4() {
            byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56, (byte) 0x78 };
            assertEquals(0x12345678, NameServicePacket.readInt4(src, 0));
        }
    
        @Test
        void testReadNameTrnId() {
            byte[] src = { (byte) 0xAB, (byte) 0xCD };
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/smb1/SID.java

            }
            sub_authority = new int[sub_authority_count];
            for (int i = 0; i < sub_authority_count; i++) {
                sub_authority[i] = ServerMessageBlock.readInt4(src, si);
                si += 4;
            }
        }
    
        /**
         * Construct a SID from it's textual representation such as
         * {@code S-1-5-21-1496946806-2192648263-3843101252-1029}.
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.5K bytes
    - Click Count (0)
  9. cmd/local-locker_gen.go

    		}
    		switch msgp.UnsafeString(field) {
    		case "Total":
    			z.Total, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "Total")
    				return
    			}
    		case "Writes":
    			z.Writes, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "Writes")
    				return
    			}
    		case "Reads":
    			z.Reads, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "Reads")
    				return
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  10. cmd/erasure-server-pool-decom_gen.go

    				return
    			}
    		case "ss":
    			z.StartSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "StartSize")
    				return
    			}
    		case "ts":
    			z.TotalSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "TotalSize")
    				return
    			}
    		case "cs":
    			z.CurrentSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "CurrentSize")
    				return
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 26.7K bytes
    - Click Count (0)
Back to Top