Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for WriteUint8 (0.08 sec)

  1. src/main/java/jcifs/smb1/smb1/Trans2SetFileInformation.java

            final int start = dstIndex;
    
            writeTime(createTime, dst, dstIndex);
            dstIndex += 8;
            writeInt8(0L, dst, dstIndex);
            dstIndex += 8;
            writeTime(lastWriteTime, dst, dstIndex);
            dstIndex += 8;
            writeInt8(0L, dst, dstIndex);
            dstIndex += 8;
            /* Samba 2.2.7 needs ATTR_NORMAL
             */
            writeInt2(0x80 | attributes, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            when(response.getHeaderStart()).thenReturn(0);
    
            // Write FileFsFullSizeInformation data (32 bytes)
            SMBUtil.writeInt8(1000000, buffer, 20); // Total allocation units
            SMBUtil.writeInt8(500000, buffer, 28); // Caller available units
            SMBUtil.writeInt8(600000, buffer, 36); // Actual available units
            SMBUtil.writeInt4(512, buffer, 44); // Sectors per unit
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/ioctl/SrvCopychunk.java

         * @see jcifs.Encodable#encode(byte[], int)
         */
        @Override
        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt8(this.sourceOffset, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt8(this.targetOffset, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt4(this.length, dst, dstIndex);
            dstIndex += 4;
            dstIndex += 4; // reserved
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            int offset = 0;
    
            // totalAllocationUnits (8 bytes)
            SMBUtil.writeInt8(2000000L, buffer, offset);
            offset += 8;
    
            // callerAvailableAllocationUnits (8 bytes)
            SMBUtil.writeInt8(800000L, buffer, offset);
            offset += 8;
    
            // actualAvailableAllocationUnits (8 bytes)
            SMBUtil.writeInt8(900000L, buffer, offset);
            offset += 8;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java

            assertEquals(0, (dst[5] << 8) | (dst[4] & 0xFF));
        }
    
        @Test
        void testWriteDataWireFormat() {
            // Given
            // writeInt8 writes 8 bytes but needs to access dst[dstIndex+7]
            // Total bytes written: 8+8+8+8+2+6=40
            // But writeInt8 at position 34 needs to access position 34+7=41
            // So we need at least 42 bytes in the array
            byte[] dst = new byte[42];
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

            byte[] buffer = new byte[32];
            // Mock data for FsFullSizeInformation
            writeInt8(3000, buffer, 0); // total allocation units
            writeInt8(1500, buffer, 8); // caller available allocation units
            writeInt8(1500, buffer, 16); // actual free units (skipped)
            writeInt4(4, buffer, 24); // sectors per allocation unit
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/lock/Smb2Lock.java

         * @see jcifs.Encodable#encode(byte[], int)
         */
        @Override
        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt8(this.offset, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt8(this.length, dst, dstIndex);
            dstIndex += 8;
    
            SMBUtil.writeInt4(this.flags, dst, dstIndex);
            dstIndex += 4;
            dstIndex += 4; // Reserved
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/fscc/FileStandardInfo.java

         */
        @Override
        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt8(this.allocationSize, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt8(this.endOfFile, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt4(this.numberOfLinks, dst, dstIndex);
            dstIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

        void testDecode() throws SMBProtocolDecodingException {
            // Prepare buffer with known value
            long expectedValue = 0x0123456789ABCDEFL;
            byte[] buffer = new byte[16];
            SMBUtil.writeInt8(expectedValue, buffer, 0);
    
            // Decode
            int bytesRead = fileInfo.decode(buffer, 0, buffer.length);
    
            // Verify bytes read
            assertEquals(8, bytesRead);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // Next command
            SMBUtil.writeInt4(0, buffer, headerStart + 20);
            // Message ID
            SMBUtil.writeInt8(1, buffer, headerStart + 24);
            // Reserved/Async ID
            SMBUtil.writeInt8(0, buffer, headerStart + 32);
            // Session ID
            SMBUtil.writeInt8(0, buffer, headerStart + 40);
            // Signature
            Arrays.fill(buffer, headerStart + 48, headerStart + 64, (byte) 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top