Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 232 for readInt4 (0.42 sec)

  1. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                assertEquals(12, bytesWritten);
                assertEquals(3, SMBUtil.readInt2(buffer, 0));
                assertEquals(2, SMBUtil.readInt2(buffer, 2));
                assertEquals(0x01, SMBUtil.readInt2(buffer, 4));
                assertEquals(0x02, SMBUtil.readInt2(buffer, 6));
                assertEquals(0x03, SMBUtil.readInt2(buffer, 8));
                assertArrayEquals(salt, Arrays.copyOfRange(buffer, 10, 12));
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            byte[] buffer = new byte[512];
            int written = trans2QueryPathInfo.writeParametersWireFormat(buffer, 0);
    
            // Check information level (first 2 bytes)
            int actualInfoLevel = SMBUtil.readInt2(buffer, 0);
            assertEquals(0x0101, actualInfoLevel); // FILE_BASIC_INFO maps to 0x0101
    
            // Check reserved bytes (4 bytes of 0x00)
            assertEquals(0x00, buffer[2]);
            assertEquals(0x00, buffer[3]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Reader.kt

        }
        val padding = if (flags and FLAG_PADDED != 0) source.readByte() and 0xff else 0
        val promisedStreamId = source.readInt() and 0x7fffffff
        val headerBlockLength = lengthWithoutPadding(length - 4, flags, padding) // - 4 for readInt().
        val headerBlock = readHeaderBlock(headerBlockLength, padding, flags, streamId)
        handler.pushPromise(streamId, promisedStreamId, headerBlock)
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Response.java

                this.sid = SMBUtil.readInt2(buffer, bufferIndex);
                bufferIndex += 2;
            }
            this.setNumEntries(SMBUtil.readInt2(buffer, bufferIndex));
            bufferIndex += 2;
            this.isEndOfSearch = ((buffer[bufferIndex] & 0x01) == 0x01) == true;
            bufferIndex += 2;
            this.eaErrorOffset = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            // Then
            assertEquals(4, bytesWritten);
    
            // Verify structure size (4) is written at offset
            assertEquals(4, SMBUtil.readInt2(buffer, offset));
    
            // Verify reserved field (0) is written at offset + 2
            assertEquals(0, SMBUtil.readInt2(buffer, offset + 2));
        }
    
        @Test
        @DisplayName("Should write exact wire format structure")
        void testWriteBytesWireFormatStructure() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComReadAndXResponse.java

            final int start = bufferIndex;
    
            bufferIndex += 2; // reserved
            this.dataCompactionMode = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 4; // 2 reserved
            this.dataLength = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.dataOffset = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 12; // 10 reserved
    
            return bufferIndex - start;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  7. cmd/bucket-stats_gen.go

    				}
    			}
    		case "PendingSize":
    			z.PendingSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "PendingSize")
    				return
    			}
    		case "FailedSize":
    			z.FailedSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "FailedSize")
    				return
    			}
    		case "PendingCount":
    			z.PendingCount, err = dc.ReadInt64()
    			if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/pac/PacDataInputStream.java

         */
        public String readString() throws IOException, PACDecodingException {
            final int totalChars = readInt();
            final int unusedChars = readInt();
            final int usedChars = readInt();
    
            if (unusedChars > totalChars || usedChars > totalChars - unusedChars) {
                throw new PACDecodingException("Malformed string in PAC");
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Serialization.java

       * of distinct keys in a multimap serialized by {@link #writeMultimap(Multimap,
       * ObjectOutputStream)}.
       */
      static int readCount(ObjectInputStream stream) throws IOException {
        return stream.readInt();
      }
    
      /**
       * Stores the contents of a map in an output stream, as part of serialization. It does not support
       * concurrent maps whose content may change while the method is running.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

            // Check FID
            int actualFid = SMBUtil.readInt2(buffer, 0);
            assertEquals(TEST_FID, actualFid);
    
            // Check information level (FILE_BASIC_INFO maps to 0x0101)
            int actualInfoLevel = SMBUtil.readInt2(buffer, 2);
            assertEquals(0x0101, actualInfoLevel);
    
            // Check reserved bytes (should be 0)
            int reserved = SMBUtil.readInt2(buffer, 4);
            assertEquals(0, reserved);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
Back to top