Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 234 for writeInt8 (0.59 sec)

  1. src/main/java/jcifs/smb1/netbios/SessionServicePacket.java

        static final int MAX_MESSAGE_SIZE = 0x0001FFFF;
        static final int HEADER_LENGTH = 4;
    
        static void writeInt2(final int val, final byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) (val >> 8 & 0xFF);
            dstIndex++;
            dst[dstIndex] = (byte) (val & 0xFF);
        }
    
        static void writeInt4(final int val, final byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) (val >> 24 & 0xFF);
            dstIndex++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChange.java

        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt4(this.completionFilter, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt2(this.fid, dst, dstIndex);
            dstIndex += 2;
            dst[dstIndex] = this.watchTree ? (byte) 0x01 : (byte) 0x00; // watchTree
            dstIndex++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v2_gen.go

    		return
    	}
    	err = en.WriteUint8(uint8(z.Type))
    	if err != nil {
    		err = msgp.WrapError(err, "Type")
    		return
    	}
    	err = en.WriteUint8(uint8(z.Flags))
    	if err != nil {
    		err = msgp.WrapError(err, "Flags")
    		return
    	}
    	err = en.WriteUint8(z.EcN)
    	if err != nil {
    		err = msgp.WrapError(err, "EcN")
    		return
    	}
    	err = en.WriteUint8(z.EcM)
    	if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Dec 15 22:50:12 UTC 2024
    - 56K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                // Given
                byte[] buffer = new byte[10];
                int bufferIndex = 0;
                SMBUtil.writeInt2(4, buffer, bufferIndex); // Write structure size = 4
                SMBUtil.writeInt2(0, buffer, bufferIndex + 2); // Reserved field
    
                // When
                int bytesRead = response.readBytesWireFormat(buffer, bufferIndex);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            SMBUtil.writeInt2(3, buffer, 8);
    
            // Size (2 bytes) - the size of this referral entry
            SMBUtil.writeInt2(20, buffer, 10);
    
            // Server type (2 bytes)
            SMBUtil.writeInt2(1, buffer, 12);
    
            // Referral flags (2 bytes)
            SMBUtil.writeInt2(0, buffer, 14);
    
            // Proximity (2 bytes for v3)
            SMBUtil.writeInt2(0, buffer, 16);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java

                int bufferIndex = 0;
                bufferIndex += 2; // reserved
                writeInt2(dataCompactionMode, buffer, bufferIndex);
                bufferIndex += 2;
                bufferIndex += 2; // reserved
                writeInt2(dataLength, buffer, bufferIndex);
                bufferIndex += 2;
                writeInt2(dataOffset, buffer, bufferIndex);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                byte[] data = new byte[128];
                // Initialize the data buffer with proper SMB2 header structure
                SMBUtil.writeInt4(0xFE534D42, data, 0); // SMB2 signature
                SMBUtil.writeInt4(0x0000, data, 12); // Command = 0
                SMBUtil.writeInt4(0x0000, data, 16); // Flags = 0
    
                CommonServerMessageBlock request = mock(CommonServerMessageBlock.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

            @DisplayName("Should decode multiple ciphers correctly")
            void testDecodeMultipleCiphers() throws SMBProtocolDecodingException {
                SMBUtil.writeInt2(2, buffer, 0);
                SMBUtil.writeInt2(EncryptionNegotiateContext.CIPHER_AES128_CCM, buffer, 2);
                SMBUtil.writeInt2(EncryptionNegotiateContext.CIPHER_AES128_GCM, buffer, 4);
    
                EncryptionNegotiateContext context = new EncryptionNegotiateContext();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            buffer[bufferIndex + 2] = 0x00;
    
            SMBUtil.writeInt4(totalParams, buffer, bufferIndex + 3);
            SMBUtil.writeInt4(totalData, buffer, bufferIndex + 7);
            SMBUtil.writeInt4(paramCount, buffer, bufferIndex + 11);
            SMBUtil.writeInt4(paramOffset, buffer, bufferIndex + 15);
            SMBUtil.writeInt4(paramDisp, buffer, bufferIndex + 19);
            SMBUtil.writeInt4(dataCount, buffer, bufferIndex + 23);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java

            // totalParameterCount = 10
            writeInt4(10, buffer, bufferIndex);
            bufferIndex += 4;
            // totalDataCount = 20
            writeInt4(20, buffer, bufferIndex);
            bufferIndex += 4;
            // parameterCount = 5
            writeInt4(5, buffer, bufferIndex);
            bufferIndex += 4;
            // parameterOffset = 30
            writeInt4(30, buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top