Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for commonConsumeSource (0.07 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-ResponseBodyCommon.kt

    import okio.ByteString
    import okio.IOException
    import okio.use
    
    internal fun ResponseBody.commonBytes() = commonConsumeSource(BufferedSource::readByteArray) { it.size }
    
    internal fun ResponseBody.commonByteString() = commonConsumeSource(BufferedSource::readByteString) { it.size }
    
    internal inline fun <T : Any> ResponseBody.commonConsumeSource(
      consumer: (BufferedSource) -> T,
      sizeMapper: (T) -> Int,
    ): T {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top