Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 234 for writeInt8 (0.05 sec)

  1. guava/src/com/google/common/collect/Serialization.java

          Multiset<E> multiset, ObjectOutputStream stream) throws IOException {
        int entryCount = multiset.entrySet().size();
        stream.writeInt(entryCount);
        for (Multiset.Entry<E> entry : multiset.entrySet()) {
          stream.writeObject(entry.getElement());
          stream.writeInt(entry.getCount());
        }
      }
    
      /**
       * Populates a multiset by reading an input stream, as part of deserialization. See {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                // Create a valid buffer with structure size 24
                byte[] buffer = new byte[64];
                int bufferIndex = 0;
    
                // Write structure size (24)
                SMBUtil.writeInt2(24, buffer, bufferIndex);
    
                // Write oplock level at offset 2
                byte expectedOplockLevel = (byte) 0x02; // SMB2_OPLOCK_LEVEL_II
                buffer[bufferIndex + 2] = expectedOplockLevel;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/ntlmssp/av/AvSingleHost.java

        }
    
        private static byte[] encode(final byte[] customData, final byte[] machineId) {
            final int size = 8 + 8 + 32;
            final 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 Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/dfs/DfsReferralRequestBuffer.java

            final int start = dstIndex;
            SMBUtil.writeInt2(this.maxReferralLevel, dst, dstIndex);
            dstIndex += 2;
            final 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 Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt

        frame.writeByte(Http2.TYPE_SETTINGS)
        frame.writeByte(FLAG_NONE)
        frame.writeInt(0) // Settings are always on the connection stream 0.
        frame.writeShort(1) // SETTINGS_HEADER_TABLE_SIZE
        frame.writeInt(reducedTableSizeBytes)
        frame.writeShort(2) // SETTINGS_ENABLE_PUSH
        frame.writeInt(0)
        reader.nextFrame(
          requireSettings = false,
          object : BaseTestHandler() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java

                dos.writeInt(Integer.reverseBytes(3)); // 3 buffers
                dos.writeInt(Integer.reverseBytes(PacConstants.PAC_VERSION));
    
                // Write buffer entries
                dos.writeInt(Integer.reverseBytes(PacConstants.LOGON_INFO));
                dos.writeInt(Integer.reverseBytes(10));
                dos.writeLong(Long.reverseBytes(100));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java

       */
      @Override
      public void writeFloat(float v) throws IOException {
        writeInt(Float.floatToIntBits(v));
      }
    
      /**
       * Writes an {@code int} as specified by {@link DataOutputStream#writeInt(int)}, except using
       * little-endian byte order.
       *
       * @throws IOException if an I/O error occurs
       */
      @Override
      public void writeInt(int v) throws IOException {
        out.write(0xFF & v);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            buffer[34] = (byte) 0x42; // andxCommand
            SMBUtil.writeInt2(83, buffer, 36); // andxOffset (33 + 50)
            SMBUtil.writeInt2(20, buffer, 42); // byteCount
    
            // Setup andx command data at offset 83 (absolute position from buffer start)
            buffer[83] = 2; // andx wordCount
            SMBUtil.writeInt2(10, buffer, 88); // andx byteCount
    
            int length = testBlock.decode(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

            void testDecodeMultipleHashAlgosWithSalt() throws SMBProtocolDecodingException {
                SMBUtil.writeInt2(3, buffer, 0);
                SMBUtil.writeInt2(2, buffer, 2);
                SMBUtil.writeInt2(0x01, buffer, 4);
                SMBUtil.writeInt2(0x02, buffer, 6);
                SMBUtil.writeInt2(0x03, buffer, 8);
                byte[] salt = { 0x0A, 0x0B };
                System.arraycopy(salt, 0, buffer, 10, 2);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java

        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt2(this.ciphers != null ? this.ciphers.length : 0, dst, dstIndex);
            dstIndex += 2;
    
            if (this.ciphers != null) {
                for (final int cipher : this.ciphers) {
                    SMBUtil.writeInt2(cipher, dst, dstIndex);
                    dstIndex += 2;
                }
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 3.8K bytes
    - Viewed (0)
Back to top