Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 174 for writeInt (0.07 sec)

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

            int start = dstIndex;
    
            writeInt2( totalParameterCount, dst, dstIndex );
            dstIndex += 2;
            writeInt2( totalDataCount, dst, dstIndex );
            dstIndex += 2;
            if( command != SMB_COM_TRANSACTION_SECONDARY ) {
                writeInt2( maxParameterCount, dst, dstIndex );
                dstIndex += 2;
                writeInt2( maxDataCount, dst, dstIndex );
                dstIndex += 2;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

            SMBUtil.writeInt2(this.totalParameterCount, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.totalDataCount, dst, dstIndex);
            dstIndex += 2;
            if ( this.getCommand() != SMB_COM_TRANSACTION_SECONDARY ) {
                SMBUtil.writeInt2(this.maxParameterCount, dst, dstIndex);
                dstIndex += 2;
                SMBUtil.writeInt2(this.maxDataCount, dst, dstIndex);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 13:43:42 UTC 2020
    - 13.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/fscc/FsctlPipeWaitRequest.java

         *
         * @see jcifs.Encodable#encode(byte[], int)
         */
        @Override
        public int encode ( byte[] dst, int dstIndex ) {
            int start = dstIndex;
            SMBUtil.writeInt8(this.timeout, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt4(this.nameBytes.length, dst, dstIndex);
            dstIndex += 4;
    
            dst[ dstIndex ] = (byte) ( this.timeoutSpecified ? 0x1 : 0x0 );
            dstIndex++;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/SessionServicePacket.java

        static final int MAX_MESSAGE_SIZE = 0x0001FFFF;
        static final int HEADER_LENGTH = 4;
    
        static void writeInt2( int val, byte[] dst, int dstIndex ) {
            dst[dstIndex++] = (byte)(( val >> 8 ) & 0xFF );
            dst[dstIndex] = (byte)( val & 0xFF );
        }
        static void writeInt4( int val, byte[] dst, int dstIndex ) {
            dst[dstIndex++] = (byte)(( val >> 24 ) & 0xFF );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 4.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/NtTransQuerySecurityDesc.java

            return 0;
        }
        int writeParametersWireFormat( byte[] dst, int dstIndex ) {
            int start = dstIndex;
    
            writeInt2( fid, dst, dstIndex );
            dstIndex += 2;
            dst[dstIndex++] = (byte)0x00; // Reserved
            dst[dstIndex++] = (byte)0x00; // Reserved
            writeInt4( securityInformation, dst, dstIndex );
            dstIndex += 4;
    
            return dstIndex - start;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChange.java

        }
    
    
        @Override
        protected int writeSetupWireFormat ( byte[] dst, int dstIndex ) {
            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
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.2K bytes
    - Viewed (0)
  7. cmd/sftp-server-driver.go

    	for i := range w.buffer {
    		delete(w.buffer, i)
    	}
    	w.wg.Wait()
    	return err
    }
    
    type writerAt struct {
    	w      *io.PipeWriter
    	r      *io.PipeReader
    	wg     *sync.WaitGroup
    	buffer map[int64][]byte
    	err    error
    
    	nextOffset int64
    	m          sync.Mutex
    }
    
    func (w *writerAt) WriteAt(b []byte, offset int64) (n int, err error) {
    	w.m.Lock()
    	defer w.m.Unlock()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/net/NetShareEnum.java

                return 0;
            }
    
            SMBUtil.writeInt2(NET_SHARE_ENUM, dst, dstIndex);
            dstIndex += 2;
            System.arraycopy(descr, 0, dst, dstIndex, descr.length);
            dstIndex += descr.length;
            SMBUtil.writeInt2(0x0001, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.maxDataCount, dst, dstIndex);
            dstIndex += 2;
    
            return dstIndex - start;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ntlmssp/av/AvSingleHost.java

        }
    
    
        private static byte[] encode ( byte[] customData, byte[] machineId ) {
            int size = 8 + 8 + 32;
            byte[] enc = new byte[size];
            SMBUtil.writeInt4(size, enc, 0);
            SMBUtil.writeInt4(0, enc, 4);
            System.arraycopy(customData, 0, enc, 8, 8);
            System.arraycopy(machineId, 0, enc, 16, 32);
            return enc;
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/dfs/DfsReferralRequestBuffer.java

            int start = dstIndex;
            SMBUtil.writeInt2(this.maxReferralLevel, dst, dstIndex);
            dstIndex += 2;
            byte[] pathBytes = this.path.getBytes(StandardCharsets.UTF_16LE);
            System.arraycopy(pathBytes, 0, dst, dstIndex, pathBytes.length);
            dstIndex += pathBytes.length;
            SMBUtil.writeInt2(0, dst, dstIndex);
            dstIndex += 2; // null terminator
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.9K bytes
    - Viewed (0)
Back to top