Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 583 for reading2 (0.06 sec)

  1. api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java

            verify(locator, never()).locateExistingPom(any(Path.class));
        }
    
        @Test
        void testStreamReading() throws IOException {
            // Test stream reading functionality
            Path testFile = tempDir.resolve("test.txt");
            String content = "test content";
            Files.writeString(testFile, content);
    
            Source source = Sources.fromPath(testFile);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/netbios/NameQueryResponse.java

                return 0;
            }
            final boolean groupName = ((src[srcIndex] & 0x80) == 0x80) == true;
            final int nodeType = (src[srcIndex] & 0x60) >> 5;
            srcIndex += 2;
            final int address = readInt4(src, srcIndex);
            if (address != 0) {
                addrEntry[addrIndex] = new NbtAddress(recordName, address, groupName, nodeType);
            } else {
                addrEntry[addrIndex] = null;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/fscc/FileRenameInformation2.java

            final int start = bufferIndex;
            this.replaceIfExists = buffer[bufferIndex] != 0;
            bufferIndex += 8;
            bufferIndex += 8;
    
            final int nameLen = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            final byte[] nameBytes = new byte[nameLen];
            System.arraycopy(buffer, bufferIndex, nameBytes, 0, nameBytes.length);
            bufferIndex += nameLen;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  4. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

        for (i in 0 until answerCount) {
          skipName(buf) // name
    
          val type = buf.readShort().toInt() and 0xffff
          buf.readShort() // class
          @Suppress("UNUSED_VARIABLE")
          val ttl = buf.readInt().toLong() and 0xffffffffL // ttl
          val length = buf.readShort().toInt() and 0xffff
    
          if (type == TYPE_A || type == TYPE_AAAA) {
            val bytes = ByteArray(length)
            buf.read(bytes)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  5. cmd/storage-datatypes.go

    	MaxSize      int64    `msg:"ms"`           // Return error if size is exceed.
    	MetadataOnly bool     `msg:"mo"`           // Read as XL meta and truncate data.
    	AbortOn404   bool     `msg:"ab"`           // Stop reading after first file not found.
    	MaxResults   int      `msg:"mr"`           // Stop after this many successful results. <= 0 means all.
    }
    
    // ReadMultipleResp contains a single response from a ReadMultipleReq.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponse.java

            }
    
            this.resumeKey = new byte[24];
            System.arraycopy(buffer, bufferIndex, this.resumeKey, 0, 24);
            bufferIndex += 24;
    
            SMBUtil.readInt4(buffer, bufferIndex); // contextLength - reserved
            bufferIndex += 4;
    
            return bufferIndex - start;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/netbios/NameQueryResponse.java

                return 0;
            }
            final boolean groupName = ((src[srcIndex] & 0x80) == 0x80) == true;
            final int nodeType = (src[srcIndex] & 0x60) >> 5;
            srcIndex += 2;
            final int address = readInt4(src, srcIndex);
            if (address != 0) {
                this.addrEntry[this.addrIndex] = new NbtAddress(this.recordName, address, groupName, nodeType);
            } else {
                this.addrEntry[this.addrIndex] = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

          ),
        )
      }
    
      @Test
      fun readSingleByteInt() {
        assertThat(newReader(byteStream()).readInt(10, 31)).isEqualTo(10)
        assertThat(newReader(byteStream()).readInt(0xe0 or 10, 31)).isEqualTo(10)
      }
    
      @Test
      fun readMultibyteInt() {
        assertThat(newReader(byteStream(154, 10)).readInt(31, 31)).isEqualTo(1337)
      }
    
      @Test
      fun writeSingleByteInt() {
        hpackWriter!!.writeInt(10, 31, 0)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 38.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

                for (int i = 0; i < SIGNATURE_LENGTH; i++) {
                    data[index + i] = 0;
                }
    
                // set signed flag
                final int oldFlags = SMBUtil.readInt4(data, offset + 16);
                final int flags = oldFlags | ServerMessageBlock2.SMB2_FLAGS_SIGNED;
                SMBUtil.writeInt4(flags, data, offset + 16);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

          "timeout",
          "Read timed out",
        )
        assertThat(webSocket.close(1000, null)).isFalse()
      }
    
      /**
       * There's no read timeout when reading the first byte of a new frame. But as soon as we start
       * reading a frame we enable the read timeout. In this test we have the server returning the first
       * byte of a frame but no more frames.
       */
      @Test
      fun readTimeoutAppliesWithinFrames() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top