Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 228 for readInt2 (2.42 sec)

  1. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

       * Reads an integer as specified by {@link DataInputStream#readInt()}, except using little-endian
       * byte order.
       *
       * @return the next four bytes of the input stream, interpreted as an {@code int} in little-endian
       *     byte order
       * @throws IOException if an I/O error occurs
       */
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      public int readInt() throws IOException {
        byte b1 = readAndCheckByte();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

            int bytesEncoded = fileInternalInfo.encode(destinationBuffer, 0);
    
            // Verify
            assertEquals(8, bytesEncoded);
            assertEquals(expectedIndexNumber, SMBUtil.readInt8(destinationBuffer, 0));
        }
    
        @Test
        @DisplayName("Test encode with buffer offset")
        void testEncodeWithBufferOffset() throws SMBProtocolDecodingException {
            // First decode to set internal state
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            SMB1SigningDigest.writeUTime(mockConfig, testTime, dst, 0);
    
            int expectedSeconds = (int) (testTime / 1000L);
            int actualSeconds = SMBUtil.readInt4(dst, 0);
            assertEquals(expectedSeconds, actualSeconds);
    
            // Test when current time is in DST but test time is not
            when(mockTimeZone.inDaylightTime(any(Date.class))).thenReturn(true) // current time
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextResponse.java

            System.arraycopy(buffer, bufferIndex, keyBytes, 0, 16);
            this.leaseKey = new Smb2LeaseKey(keyBytes);
            bufferIndex += 16;
    
            this.leaseState = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            this.leaseFlags = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // LeaseDuration (8 bytes) - reserved, skip
            bufferIndex += 8;
    
            return bufferIndex - start;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java

        protected void setUp() throws Exception {
            file1 = File.createTempFile("kuromoji_", ".txt");
            FileUtil.write(
                    file1.getAbsolutePath(),
                    "token1,seg1,reading1,pos1\ntoken2,seg2,reading2,pos2\ntoken3,seg3,reading3,pos3"
                            .getBytes(Constants.UTF_8));
        }
    
        @Override
        protected void tearDown() throws Exception {
            file1.delete();
        }
        */
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/pac/Pac.java

                int bufferCount = pacStream.readInt();
                int version = pacStream.readInt();
    
                if (version != PacConstants.PAC_VERSION) {
                    throw new PACDecodingException("Unrecognized PAC version " + version);
                }
    
                for (int bufferIndex = 0; bufferIndex < bufferCount; bufferIndex++) {
                    int bufferType = pacStream.readInt();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Response.java

                throw new SMBProtocolDecodingException("Invalid durable handle V2 response length: " + len);
            }
    
            this.timeout100Ns = SMBUtil.readInt4(buffer, bufferIndex) & 0xFFFFFFFFL; // Timeout (4 bytes, 100-ns intervals, unsigned)
            this.flags = SMBUtil.readInt4(buffer, bufferIndex + 4); // Flags (4 bytes)
            return 8;
        }
    
        /**
         * Get the timeout value in 100-nanosecond intervals (raw wire format)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt

        try {
          listSource().buffer().use { bufferedSource ->
            val totalBytes = bufferedSource.readInt()
            publicSuffixListBytes = bufferedSource.readByteString(totalBytes.toLong())
    
            val totalExceptionBytes = bufferedSource.readInt()
            publicSuffixExceptionListBytes = bufferedSource.readByteString(totalExceptionBytes.toLong())
          }
    
          synchronized(this) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

            while (offset < outputBuffer.length) {
                // Parse FILE_NOTIFY_INFORMATION structure
                int nextEntryOffset = SMBUtil.readInt4(outputBuffer, offset);
                int action = SMBUtil.readInt4(outputBuffer, offset + 4);
                int fileNameLength = SMBUtil.readInt4(outputBuffer, offset + 8);
    
                // Extract filename
                byte[] fileNameBytes = new byte[fileNameLength];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/ioctl/QueryNetworkInterfaceInfoResponse.java

            interfaces.clear();
    
            while (bufferIndex < end && (bufferIndex + 152) <= end) {
                // Read Next field to determine if there are more entries
                int next = SMBUtil.readInt4(buffer, bufferIndex);
    
                NetworkInterfaceInfo info = NetworkInterfaceInfo.decode(buffer, bufferIndex);
                if (info != null) {
                    interfaces.add(info);
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 2.7K bytes
    - Viewed (0)
Back to top