Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 234 for writeInt8 (0.91 sec)

  1. src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequest.java

         * @see jcifs.internal.smb2.ServerMessageBlock2#writeBytesWireFormat(byte[], int)
         */
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            SMBUtil.writeInt2(4, dst, dstIndex);
            SMBUtil.writeInt2(0, dst, dstIndex + 2);
            return 4;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

        val totalRuleBytes: Int,
        val totalExceptionRuleBytes: Int,
      ) {
        fun writeOut(sink: BufferedSink) {
          with(sink) {
            writeInt(totalRuleBytes)
            for (domain in sortedRules) {
              write(domain).writeByte(NEWLINE)
            }
            writeInt(totalExceptionRuleBytes)
            for (domain in sortedExceptionRules) {
              write(domain).writeByte(NEWLINE)
            }
          }
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Aug 06 05:33:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtlmContext.java

                    throw new CIFSException("Failed to encrypt MIC", e);
                }
            }
    
            final byte[] sig = new byte[16];
            SMBUtil.writeInt4(1, sig, 0); // version
            System.arraycopy(trunc, 0, sig, 4, 8); // checksum
            SMBUtil.writeInt4(seqNum, sig, 12); // seqNum
    
            return sig;
        }
    
        @Override
        public void verifyMIC(final byte[] data, final byte[] mic) throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

                final int index = offset + SmbConstants.SIGNATURE_OFFSET;
                for (int i = 0; i < 8; i++) {
                    data[index + i] = 0;
                }
                SMBUtil.writeInt4(this.signSequence, data, index);
                update(data, offset, length);
                System.arraycopy(digest(), 0, data, index, 8);
                if (this.bypass) {
                    this.bypass = false;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComFindClose2.java

        SmbComFindClose2(final int sid) {
            this.sid = sid;
            command = SMB_COM_FIND_CLOSE2;
        }
    
        @Override
        int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            writeInt2(sid, dst, dstIndex);
            return 2;
        }
    
        @Override
        int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

                // Arrange: build a buffer that has the little-endian value 4 at 'start'
                int len = start + 2; // need at least two bytes from start
                byte[] buffer = new byte[len + 3];
                SMBUtil.writeInt2(4, buffer, start);
                Smb2LogoffResponse resp = newResponse();
    
                // Act
                int read = resp.readBytesWireFormat(buffer, start);
    
                // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComDelete.java

            command = SMB_COM_DELETE;
            searchAttributes = ATTR_HIDDEN | ATTR_HIDDEN | ATTR_SYSTEM;
        }
    
        @Override
        int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            writeInt2(searchAttributes, dst, dstIndex);
            return 2;
        }
    
        @Override
        int writeBytesWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            dst[dstIndex] = (byte) 0x04;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                    mockedSMBUtil.when(() -> SMBUtil.writeInt2(anyLong(), any(byte[].class), anyInt())).thenAnswer(invocation -> null);
    
                    byte[] dst = new byte[buffer.size()];
                    buffer.encode(dst, 0);
    
                    // Verify SMBUtil.writeInt2 was called for referral level (with long parameter)
                    mockedSMBUtil.verify(() -> SMBUtil.writeInt2(eq((long) maxReferralLevel), any(byte[].class), eq(0)));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ntlmssp/av/AvFlags.java

         */
        public int getFlags() {
            return SMBUtil.readInt4(this.getRaw(), 0);
        }
    
        private static byte[] encode(final int flags) {
            final byte[] raw = new byte[4];
            SMBUtil.writeInt4(flags, raw, 0);
            return raw;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/session/Smb2LogoffRequest.java

         * @see jcifs.internal.smb2.ServerMessageBlock2#writeBytesWireFormat(byte[], int)
         */
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            SMBUtil.writeInt2(4, dst, dstIndex);
            SMBUtil.writeInt2(0, dst, dstIndex + 2);
            return 4;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top