Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 155 for writeInt2 (0.17 sec)

  1. src/main/java/jcifs/ntlmssp/av/AvFlags.java

         */
        public int getFlags () {
            return SMBUtil.readInt4(this.getRaw(), 0);
        }
    
    
        private static byte[] encode ( int flags ) {
            byte[] raw = new byte[4];
            SMBUtil.writeInt4(flags, raw, 0);
            return raw;
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/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)
            }
          }
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopy.java

         */
        @Override
        public int encode ( byte[] dst, int dstIndex ) {
            int start = dstIndex;
    
            System.arraycopy(this.sourceKey, 0, dst, dstIndex, 24);
            dstIndex += 24;
    
            SMBUtil.writeInt4(this.chunks.length, dst, dstIndex);
            dstIndex += 4;
    
            dstIndex += 4; // Reserved
    
            for ( SrvCopychunk chk : this.chunks ) {
                dstIndex += chk.encode(dst, dstIndex);
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/av/AvTimestamp.java

            this(encode(ts));
        }
    
    
        /**
         * @param ts
         * @return
         */
        private static byte[] encode ( long ts ) {
            byte[] data = new byte[8];
            SMBUtil.writeInt8(ts, data, 0);
            return data;
        }
    
    
        /**
         * @return the timestamp
         */
        public long getTimestamp () {
            return SMBUtil.readInt8(getRaw(), 0);
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/fscc/FileEndOfFileInformation.java

            return 8;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#encode(byte[], int)
         */
        @Override
        public int encode ( byte[] dst, int dstIndex ) {
            SMBUtil.writeInt8(this.endOfFile, dst, dstIndex);
            return 8;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#toString()
         */
        @Override
        public String toString () {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.4K bytes
    - Viewed (0)
  6. cmd/local-locker_gen.go

    	err = en.Append(0x83, 0xa5, 0x54, 0x6f, 0x74, 0x61, 0x6c)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.Total)
    	if err != nil {
    		err = msgp.WrapError(err, "Total")
    		return
    	}
    	// write "Writes"
    	err = en.Append(0xa6, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.Writes)
    	if err != nil {
    		err = msgp.WrapError(err, "Writes")
    		return
    	}
    	// write "Reads"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/fscc/FileRenameInformation2.java

            dstIndex += 8; // 7 Reserved
            dstIndex += 8; // RootDirectory = 0
    
            byte[] nameBytes = this.fileName.getBytes(StandardCharsets.UTF_16LE);
    
            SMBUtil.writeInt4(nameBytes.length, dst, dstIndex);
            dstIndex += 4;
    
            System.arraycopy(nameBytes, 0, dst, dstIndex, nameBytes.length);
            dstIndex += nameBytes.length;
    
            return dstIndex - start;
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.1K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

      fun allocate(count: Int): List<InetAddress> {
        val from = nextAddress
        nextAddress += count
        return (from until nextAddress)
          .map {
            return@map InetAddress.getByAddress(
              Buffer().writeInt(it.toInt()).readByteArray(),
            )
          }
      }
    
      /** Allocates and returns `count` fake IPv6 addresses like [::ff00:64, ::ff00:65].  */
      fun allocateIpv6(count: Int): List<InetAddress> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/NtlmContext.java

                    throw new CIFSException("Failed to encrypt MIC", e);
                }
            }
    
            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 ( byte[] data, byte[] mic ) throws CIFSException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 15.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/ws/MessageInflater.kt

      fun inflate(buffer: Buffer) {
        require(deflatedBytes.size == 0L)
    
        if (noContextTakeover) {
          inflater.reset()
        }
    
        deflatedBytes.writeAll(buffer)
        deflatedBytes.writeInt(OCTETS_TO_ADD_BEFORE_INFLATION)
    
        val totalBytesToRead = inflater.bytesRead + deflatedBytes.size
    
        // We cannot read all, as the source does not close.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top