Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ReadHeader (0.06 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

       */
      @Throws(IOException::class)
      fun processNextFrame() {
        readHeader()
        if (isControlFrame) {
          readControlFrame()
        } else {
          readMessageFrame()
        }
      }
    
      @Throws(IOException::class, ProtocolException::class)
      private fun readHeader() {
        if (closed) throw IOException("closed")
    
        // Disable the timeout to read the first byte of a new frame.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

        if (result == null) {
          result = readHeader()
          peekedHeader = result
        }
    
        if (result.isEndOfData) return null
    
        return result
      }
    
      /**
       * Consume the next header in the stream and return it. If there is no header to read because we
       * have reached a limit, this returns [END_OF_DATA].
       */
      internal fun readHeader(): DerHeader {
        require(peekedHeader == null)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. src/archive/tar/reader.go

    			return nil, err
    		}
    		if _, err := tryReadFull(tr.r, tr.blk[:tr.pad]); err != nil {
    			return nil, err
    		}
    		tr.pad = 0
    
    		hdr, rawHdr, err := tr.readHeader()
    		if err != nil {
    			return nil, err
    		}
    		if err := tr.handleRegularFile(hdr); err != nil {
    			return nil, err
    		}
    		format.mayOnlyBe(hdr.Format)
    
    		// Check for PAX/GNU special headers and files.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  4. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

            .writeByte(0b11111111)
            .writeByte(0b11111111)
            .writeByte(0b11111111)
            .writeByte(0b11111111)
    
        val derReader = DerReader(buffer)
    
        val header = derReader.readHeader()
        assertThat(header.length).isEqualTo(Long.MAX_VALUE)
      }
    
      @Test fun `decode length overflowing Long`() {
        val buffer =
          Buffer()
            .writeByte(0b00000010)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 31.7K bytes
    - Viewed (0)
Back to top