Remove a bunch of redundant expect/actuals
diff --git a/okio/js/src/main/kotlin/okio/Buffer.kt b/okio/js/src/main/kotlin/okio/Buffer.kt
index 094a503..a69b6f8 100644
--- a/okio/js/src/main/kotlin/okio/Buffer.kt
+++ b/okio/js/src/main/kotlin/okio/Buffer.kt
@@ -22,69 +22,69 @@
actual override fun emit(): Buffer = this // Nowhere to emit to!
- actual override fun exhausted(): Boolean = throw UnsupportedOperationException()
+ override fun exhausted(): Boolean = throw UnsupportedOperationException()
- actual override fun require(byteCount: Long) {
+ override fun require(byteCount: Long) {
throw UnsupportedOperationException()
}
- actual override fun request(byteCount: Long): Boolean = throw UnsupportedOperationException()
+ override fun request(byteCount: Long): Boolean = throw UnsupportedOperationException()
- actual override fun peek(): BufferedSource = throw UnsupportedOperationException()
+ override fun peek(): BufferedSource = throw UnsupportedOperationException()
- actual override fun readByte(): Byte = throw UnsupportedOperationException()
+ override fun readByte(): Byte = throw UnsupportedOperationException()
- actual override fun readShort(): Short = throw UnsupportedOperationException()
+ override fun readShort(): Short = throw UnsupportedOperationException()
- actual override fun readInt(): Int = throw UnsupportedOperationException()
+ override fun readInt(): Int = throw UnsupportedOperationException()
- actual override fun readLong(): Long = throw UnsupportedOperationException()
+ override fun readLong(): Long = throw UnsupportedOperationException()
- actual override fun readShortLe(): Short = throw UnsupportedOperationException()
+ override fun readShortLe(): Short = throw UnsupportedOperationException()
- actual override fun readIntLe(): Int = throw UnsupportedOperationException()
+ override fun readIntLe(): Int = throw UnsupportedOperationException()
- actual override fun readLongLe(): Long = throw UnsupportedOperationException()
+ override fun readLongLe(): Long = throw UnsupportedOperationException()
- actual override fun readDecimalLong(): Long = throw UnsupportedOperationException()
+ override fun readDecimalLong(): Long = throw UnsupportedOperationException()
- actual override fun readHexadecimalUnsignedLong(): Long = throw UnsupportedOperationException()
+ override fun readHexadecimalUnsignedLong(): Long = throw UnsupportedOperationException()
- actual override fun readByteString(): ByteString = throw UnsupportedOperationException()
+ override fun readByteString(): ByteString = throw UnsupportedOperationException()
- actual override fun readByteString(byteCount: Long): ByteString = throw UnsupportedOperationException()
+ override fun readByteString(byteCount: Long): ByteString = throw UnsupportedOperationException()
- actual override fun readFully(sink: Buffer, byteCount: Long) {
+ override fun readFully(sink: Buffer, byteCount: Long) {
throw UnsupportedOperationException()
}
- actual override fun readAll(sink: Sink): Long = throw UnsupportedOperationException()
+ override fun readAll(sink: Sink): Long = throw UnsupportedOperationException()
- actual override fun readUtf8(): String = throw UnsupportedOperationException()
+ override fun readUtf8(): String = throw UnsupportedOperationException()
- actual override fun readUtf8(byteCount: Long): String = throw UnsupportedOperationException()
+ override fun readUtf8(byteCount: Long): String = throw UnsupportedOperationException()
- actual override fun readUtf8Line(): String? = throw UnsupportedOperationException()
+ override fun readUtf8Line(): String? = throw UnsupportedOperationException()
- actual override fun readUtf8LineStrict(): String = throw UnsupportedOperationException()
+ override fun readUtf8LineStrict(): String = throw UnsupportedOperationException()
- actual override fun readUtf8LineStrict(limit: Long): String = throw UnsupportedOperationException()
+ override fun readUtf8LineStrict(limit: Long): String = throw UnsupportedOperationException()
- actual override fun readUtf8CodePoint(): Int = throw UnsupportedOperationException()
+ override fun readUtf8CodePoint(): Int = throw UnsupportedOperationException()
- actual override fun readByteArray(): ByteArray = throw UnsupportedOperationException()
+ override fun readByteArray(): ByteArray = throw UnsupportedOperationException()
- actual override fun readByteArray(byteCount: Long): ByteArray = throw UnsupportedOperationException()
+ override fun readByteArray(byteCount: Long): ByteArray = throw UnsupportedOperationException()
- actual override fun read(sink: ByteArray): Int = throw UnsupportedOperationException()
+ override fun read(sink: ByteArray): Int = throw UnsupportedOperationException()
- actual override fun readFully(sink: ByteArray) {
+ override fun readFully(sink: ByteArray) {
throw UnsupportedOperationException()
}
- actual override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int = throw UnsupportedOperationException()
+ override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int = throw UnsupportedOperationException()
- actual override fun skip(byteCount: Long) {
+ override fun skip(byteCount: Long) {
throw UnsupportedOperationException()
}
@@ -100,9 +100,9 @@
actual override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer = throw UnsupportedOperationException()
- actual override fun writeAll(source: Source): Long = throw UnsupportedOperationException()
+ override fun writeAll(source: Source): Long = throw UnsupportedOperationException()
- actual override fun write(source: Source, byteCount: Long): BufferedSink = throw UnsupportedOperationException()
+ actual override fun write(source: Source, byteCount: Long): Buffer = throw UnsupportedOperationException()
actual override fun writeByte(b: Int): Buffer = throw UnsupportedOperationException()
@@ -122,40 +122,40 @@
actual override fun writeHexadecimalUnsignedLong(v: Long): Buffer = throw UnsupportedOperationException()
- actual override fun write(source: Buffer, byteCount: Long) {
+ override fun write(source: Buffer, byteCount: Long) {
throw UnsupportedOperationException()
}
- actual override fun read(sink: Buffer, byteCount: Long): Long = throw UnsupportedOperationException()
+ override fun read(sink: Buffer, byteCount: Long): Long = throw UnsupportedOperationException()
- actual override fun indexOf(b: Byte): Long = throw UnsupportedOperationException()
+ override fun indexOf(b: Byte): Long = throw UnsupportedOperationException()
- actual override fun indexOf(b: Byte, fromIndex: Long): Long = throw UnsupportedOperationException()
+ override fun indexOf(b: Byte, fromIndex: Long): Long = throw UnsupportedOperationException()
- actual override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long = throw UnsupportedOperationException()
+ override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long = throw UnsupportedOperationException()
- actual override fun indexOf(bytes: ByteString): Long = throw UnsupportedOperationException()
+ override fun indexOf(bytes: ByteString): Long = throw UnsupportedOperationException()
- actual override fun indexOf(bytes: ByteString, fromIndex: Long): Long = throw UnsupportedOperationException()
+ override fun indexOf(bytes: ByteString, fromIndex: Long): Long = throw UnsupportedOperationException()
- actual override fun indexOfElement(targetBytes: ByteString): Long = throw UnsupportedOperationException()
+ override fun indexOfElement(targetBytes: ByteString): Long = throw UnsupportedOperationException()
- actual override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long = throw UnsupportedOperationException()
+ override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long = throw UnsupportedOperationException()
- actual override fun rangeEquals(offset: Long, bytes: ByteString): Boolean = throw UnsupportedOperationException()
+ override fun rangeEquals(offset: Long, bytes: ByteString): Boolean = throw UnsupportedOperationException()
- actual override fun rangeEquals(
+ override fun rangeEquals(
offset: Long,
bytes: ByteString,
bytesOffset: Int,
byteCount: Int
): Boolean = throw UnsupportedOperationException()
- actual override fun flush() {
+ override fun flush() {
}
- actual override fun close() {
+ override fun close() {
}
- actual override fun timeout() = Timeout.NONE
+ override fun timeout() = Timeout.NONE
}
diff --git a/okio/jvm/src/main/java/okio/Buffer.kt b/okio/jvm/src/main/java/okio/Buffer.kt
index add0f8a..1432c02 100644
--- a/okio/jvm/src/main/java/okio/Buffer.kt
+++ b/okio/jvm/src/main/java/okio/Buffer.kt
@@ -74,16 +74,16 @@
actual override fun emit() = this // Nowhere to emit to!
- actual override fun exhausted() = size == 0L
+ override fun exhausted() = size == 0L
@Throws(EOFException::class)
- actual override fun require(byteCount: Long) {
+ override fun require(byteCount: Long) {
if (size < byteCount) throw EOFException()
}
- actual override fun request(byteCount: Long) = size >= byteCount
+ override fun request(byteCount: Long) = size >= byteCount
- actual override fun peek(): BufferedSource {
+ override fun peek(): BufferedSource {
return PeekSource(this).buffer()
}
@@ -259,7 +259,7 @@
}
@Throws(EOFException::class)
- actual override fun readByte(): Byte {
+ override fun readByte(): Byte {
if (size == 0L) throw EOFException()
val segment = head!!
@@ -290,7 +290,7 @@
}
@Throws(EOFException::class)
- actual override fun readShort(): Short {
+ override fun readShort(): Short {
if (size < 2L) throw EOFException()
val segment = head!!
@@ -318,7 +318,7 @@
}
@Throws(EOFException::class)
- actual override fun readInt(): Int {
+ override fun readInt(): Int {
if (size < 4L) throw EOFException()
val segment = head!!
@@ -351,7 +351,7 @@
}
@Throws(EOFException::class)
- actual override fun readLong(): Long {
+ override fun readLong(): Long {
if (size < 8L) throw EOFException()
val segment = head!!
@@ -386,16 +386,16 @@
}
@Throws(EOFException::class)
- actual override fun readShortLe() = readShort().reverseBytes()
+ override fun readShortLe() = readShort().reverseBytes()
@Throws(EOFException::class)
- actual override fun readIntLe() = readInt().reverseBytes()
+ override fun readIntLe() = readInt().reverseBytes()
@Throws(EOFException::class)
- actual override fun readLongLe() = readLong().reverseBytes()
+ override fun readLongLe() = readLong().reverseBytes()
@Throws(EOFException::class)
- actual override fun readDecimalLong(): Long {
+ override fun readDecimalLong(): Long {
if (size == 0L) throw EOFException()
// This value is always built negatively in order to accommodate Long.MIN_VALUE.
@@ -457,7 +457,7 @@
}
@Throws(EOFException::class)
- actual override fun readHexadecimalUnsignedLong(): Long {
+ override fun readHexadecimalUnsignedLong(): Long {
if (size == 0L) throw EOFException()
var value = 0L
@@ -516,10 +516,10 @@
return value
}
- actual override fun readByteString(): ByteString = ByteString(readByteArray())
+ override fun readByteString(): ByteString = ByteString(readByteArray())
@Throws(EOFException::class)
- actual override fun readByteString(byteCount: Long) = ByteString(readByteArray(byteCount))
+ override fun readByteString(byteCount: Long) = ByteString(readByteArray(byteCount))
override fun select(options: Options): Int {
val index = selectPrefix(options)
@@ -633,7 +633,7 @@
}
@Throws(EOFException::class)
- actual override fun readFully(sink: Buffer, byteCount: Long) {
+ override fun readFully(sink: Buffer, byteCount: Long) {
if (size < byteCount) {
sink.write(this, size) // Exhaust ourselves.
throw EOFException()
@@ -642,7 +642,7 @@
}
@Throws(IOException::class)
- actual override fun readAll(sink: Sink): Long {
+ override fun readAll(sink: Sink): Long {
val byteCount = size
if (byteCount > 0L) {
sink.write(this, byteCount)
@@ -650,10 +650,10 @@
return byteCount
}
- actual override fun readUtf8() = readString(size, Charsets.UTF_8)
+ override fun readUtf8() = readString(size, Charsets.UTF_8)
@Throws(EOFException::class)
- actual override fun readUtf8(byteCount: Long) = readString(byteCount, Charsets.UTF_8)
+ override fun readUtf8(byteCount: Long) = readString(byteCount, Charsets.UTF_8)
override fun readString(charset: Charset) = readString(size, charset)
@@ -682,7 +682,7 @@
}
@Throws(EOFException::class)
- actual override fun readUtf8Line(): String? {
+ override fun readUtf8Line(): String? {
val newline = indexOf('\n'.toByte())
return when {
@@ -693,10 +693,10 @@
}
@Throws(EOFException::class)
- actual override fun readUtf8LineStrict() = readUtf8LineStrict(Long.MAX_VALUE)
+ override fun readUtf8LineStrict() = readUtf8LineStrict(Long.MAX_VALUE)
@Throws(EOFException::class)
- actual override fun readUtf8LineStrict(limit: Long): String {
+ override fun readUtf8LineStrict(limit: Long): String {
require(limit >= 0L) { "limit < 0: $limit" }
val scanLength = if (limit == Long.MAX_VALUE) Long.MAX_VALUE else limit + 1L
val newline = indexOf('\n'.toByte(), 0L, scanLength)
@@ -731,7 +731,7 @@
}
@Throws(EOFException::class)
- actual override fun readUtf8CodePoint(): Int {
+ override fun readUtf8CodePoint(): Int {
if (size == 0L) throw EOFException()
val b0 = this[0]
@@ -807,10 +807,10 @@
}
}
- actual override fun readByteArray() = readByteArray(size)
+ override fun readByteArray() = readByteArray(size)
@Throws(EOFException::class)
- actual override fun readByteArray(byteCount: Long): ByteArray {
+ override fun readByteArray(byteCount: Long): ByteArray {
require(byteCount >= 0 && byteCount <= Integer.MAX_VALUE) { "byteCount: $byteCount" }
if (size < byteCount) throw EOFException()
@@ -819,10 +819,10 @@
return result
}
- actual override fun read(sink: ByteArray) = read(sink, 0, sink.size)
+ override fun read(sink: ByteArray) = read(sink, 0, sink.size)
@Throws(EOFException::class)
- actual override fun readFully(sink: ByteArray) {
+ override fun readFully(sink: ByteArray) {
var offset = 0
while (offset < sink.size) {
val read = read(sink, offset, sink.size - offset)
@@ -831,7 +831,7 @@
}
}
- actual override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int {
+ override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int {
checkOffsetAndCount(sink.size.toLong(), offset.toLong(), byteCount.toLong())
val s = head ?: return -1
@@ -875,7 +875,7 @@
/** Discards `byteCount` bytes from the head of this buffer. */
@Throws(EOFException::class)
- actual override fun skip(byteCount: Long) {
+ override fun skip(byteCount: Long) {
var byteCount = byteCount
while (byteCount > 0) {
val head = this.head ?: throw EOFException()
@@ -1098,7 +1098,7 @@
}
@Throws(IOException::class)
- actual override fun writeAll(source: Source): Long {
+ override fun writeAll(source: Source): Long {
var totalBytesRead = 0L
while (true) {
val readCount = source.read(this, Segment.SIZE.toLong())
@@ -1109,7 +1109,7 @@
}
@Throws(IOException::class)
- actual override fun write(source: Source, byteCount: Long): BufferedSink {
+ actual override fun write(source: Source, byteCount: Long): Buffer {
var byteCount = byteCount
while (byteCount > 0L) {
val read = source.read(this, byteCount)
@@ -1284,7 +1284,7 @@
return tail
}
- actual override fun write(source: Buffer, byteCount: Long) {
+ override fun write(source: Buffer, byteCount: Long) {
var byteCount = byteCount
// Move bytes from the head of the source buffer to the tail of this buffer
// while balancing two conflicting goals: don't waste CPU and don't waste
@@ -1376,7 +1376,7 @@
}
}
- actual override fun read(sink: Buffer, byteCount: Long): Long {
+ override fun read(sink: Buffer, byteCount: Long): Long {
var byteCount = byteCount
require(byteCount >= 0) { "byteCount < 0: $byteCount" }
if (size == 0L) return -1L
@@ -1385,7 +1385,7 @@
return byteCount
}
- actual override fun indexOf(b: Byte) = indexOf(b, 0, Long.MAX_VALUE)
+ override fun indexOf(b: Byte) = indexOf(b, 0, Long.MAX_VALUE)
/**
* Invoke `lambda` with the segment and offset at `fromIndex`. Searches from the front or the back
@@ -1419,9 +1419,9 @@
* Returns the index of `b` in this at or beyond `fromIndex`, or -1 if this buffer does not
* contain `b` in that range.
*/
- actual override fun indexOf(b: Byte, fromIndex: Long) = indexOf(b, fromIndex, Long.MAX_VALUE)
+ override fun indexOf(b: Byte, fromIndex: Long) = indexOf(b, fromIndex, Long.MAX_VALUE)
- actual override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long {
+ override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long {
var fromIndex = fromIndex
var toIndex = toIndex
require(fromIndex in 0..toIndex) { "size=$size fromIndex=$fromIndex toIndex=$toIndex" }
@@ -1456,10 +1456,10 @@
}
@Throws(IOException::class)
- actual override fun indexOf(bytes: ByteString): Long = indexOf(bytes, 0)
+ override fun indexOf(bytes: ByteString): Long = indexOf(bytes, 0)
@Throws(IOException::class)
- actual override fun indexOf(bytes: ByteString, fromIndex: Long): Long {
+ override fun indexOf(bytes: ByteString, fromIndex: Long): Long {
var fromIndex = fromIndex
require(bytes.size > 0) { "bytes is empty" }
require(fromIndex >= 0L) { "fromIndex < 0: $fromIndex" }
@@ -1494,9 +1494,9 @@
}
}
- actual override fun indexOfElement(targetBytes: ByteString) = indexOfElement(targetBytes, 0L)
+ override fun indexOfElement(targetBytes: ByteString) = indexOfElement(targetBytes, 0L)
- actual override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long {
+ override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long {
var fromIndex = fromIndex
require(fromIndex >= 0L) { "fromIndex < 0: $fromIndex" }
@@ -1554,10 +1554,10 @@
}
}
- actual override fun rangeEquals(offset: Long, bytes: ByteString) =
+ override fun rangeEquals(offset: Long, bytes: ByteString) =
rangeEquals(offset, bytes, 0, bytes.size)
- actual override fun rangeEquals(
+ override fun rangeEquals(
offset: Long,
bytes: ByteString,
bytesOffset: Int,
@@ -1614,13 +1614,13 @@
return true
}
- actual override fun flush() {}
+ override fun flush() {}
override fun isOpen() = true
- actual override fun close() {}
+ override fun close() {}
- actual override fun timeout() = Timeout.NONE
+ override fun timeout() = Timeout.NONE
/** Returns the 128-bit MD5 hash of this buffer. */
fun md5() = digest("MD5")
diff --git a/okio/native/src/main/kotlin/okio/Buffer.kt b/okio/native/src/main/kotlin/okio/Buffer.kt
index 094a503..a69b6f8 100644
--- a/okio/native/src/main/kotlin/okio/Buffer.kt
+++ b/okio/native/src/main/kotlin/okio/Buffer.kt
@@ -22,69 +22,69 @@
actual override fun emit(): Buffer = this // Nowhere to emit to!
- actual override fun exhausted(): Boolean = throw UnsupportedOperationException()
+ override fun exhausted(): Boolean = throw UnsupportedOperationException()
- actual override fun require(byteCount: Long) {
+ override fun require(byteCount: Long) {
throw UnsupportedOperationException()
}
- actual override fun request(byteCount: Long): Boolean = throw UnsupportedOperationException()
+ override fun request(byteCount: Long): Boolean = throw UnsupportedOperationException()
- actual override fun peek(): BufferedSource = throw UnsupportedOperationException()
+ override fun peek(): BufferedSource = throw UnsupportedOperationException()
- actual override fun readByte(): Byte = throw UnsupportedOperationException()
+ override fun readByte(): Byte = throw UnsupportedOperationException()
- actual override fun readShort(): Short = throw UnsupportedOperationException()
+ override fun readShort(): Short = throw UnsupportedOperationException()
- actual override fun readInt(): Int = throw UnsupportedOperationException()
+ override fun readInt(): Int = throw UnsupportedOperationException()
- actual override fun readLong(): Long = throw UnsupportedOperationException()
+ override fun readLong(): Long = throw UnsupportedOperationException()
- actual override fun readShortLe(): Short = throw UnsupportedOperationException()
+ override fun readShortLe(): Short = throw UnsupportedOperationException()
- actual override fun readIntLe(): Int = throw UnsupportedOperationException()
+ override fun readIntLe(): Int = throw UnsupportedOperationException()
- actual override fun readLongLe(): Long = throw UnsupportedOperationException()
+ override fun readLongLe(): Long = throw UnsupportedOperationException()
- actual override fun readDecimalLong(): Long = throw UnsupportedOperationException()
+ override fun readDecimalLong(): Long = throw UnsupportedOperationException()
- actual override fun readHexadecimalUnsignedLong(): Long = throw UnsupportedOperationException()
+ override fun readHexadecimalUnsignedLong(): Long = throw UnsupportedOperationException()
- actual override fun readByteString(): ByteString = throw UnsupportedOperationException()
+ override fun readByteString(): ByteString = throw UnsupportedOperationException()
- actual override fun readByteString(byteCount: Long): ByteString = throw UnsupportedOperationException()
+ override fun readByteString(byteCount: Long): ByteString = throw UnsupportedOperationException()
- actual override fun readFully(sink: Buffer, byteCount: Long) {
+ override fun readFully(sink: Buffer, byteCount: Long) {
throw UnsupportedOperationException()
}
- actual override fun readAll(sink: Sink): Long = throw UnsupportedOperationException()
+ override fun readAll(sink: Sink): Long = throw UnsupportedOperationException()
- actual override fun readUtf8(): String = throw UnsupportedOperationException()
+ override fun readUtf8(): String = throw UnsupportedOperationException()
- actual override fun readUtf8(byteCount: Long): String = throw UnsupportedOperationException()
+ override fun readUtf8(byteCount: Long): String = throw UnsupportedOperationException()
- actual override fun readUtf8Line(): String? = throw UnsupportedOperationException()
+ override fun readUtf8Line(): String? = throw UnsupportedOperationException()
- actual override fun readUtf8LineStrict(): String = throw UnsupportedOperationException()
+ override fun readUtf8LineStrict(): String = throw UnsupportedOperationException()
- actual override fun readUtf8LineStrict(limit: Long): String = throw UnsupportedOperationException()
+ override fun readUtf8LineStrict(limit: Long): String = throw UnsupportedOperationException()
- actual override fun readUtf8CodePoint(): Int = throw UnsupportedOperationException()
+ override fun readUtf8CodePoint(): Int = throw UnsupportedOperationException()
- actual override fun readByteArray(): ByteArray = throw UnsupportedOperationException()
+ override fun readByteArray(): ByteArray = throw UnsupportedOperationException()
- actual override fun readByteArray(byteCount: Long): ByteArray = throw UnsupportedOperationException()
+ override fun readByteArray(byteCount: Long): ByteArray = throw UnsupportedOperationException()
- actual override fun read(sink: ByteArray): Int = throw UnsupportedOperationException()
+ override fun read(sink: ByteArray): Int = throw UnsupportedOperationException()
- actual override fun readFully(sink: ByteArray) {
+ override fun readFully(sink: ByteArray) {
throw UnsupportedOperationException()
}
- actual override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int = throw UnsupportedOperationException()
+ override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int = throw UnsupportedOperationException()
- actual override fun skip(byteCount: Long) {
+ override fun skip(byteCount: Long) {
throw UnsupportedOperationException()
}
@@ -100,9 +100,9 @@
actual override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer = throw UnsupportedOperationException()
- actual override fun writeAll(source: Source): Long = throw UnsupportedOperationException()
+ override fun writeAll(source: Source): Long = throw UnsupportedOperationException()
- actual override fun write(source: Source, byteCount: Long): BufferedSink = throw UnsupportedOperationException()
+ actual override fun write(source: Source, byteCount: Long): Buffer = throw UnsupportedOperationException()
actual override fun writeByte(b: Int): Buffer = throw UnsupportedOperationException()
@@ -122,40 +122,40 @@
actual override fun writeHexadecimalUnsignedLong(v: Long): Buffer = throw UnsupportedOperationException()
- actual override fun write(source: Buffer, byteCount: Long) {
+ override fun write(source: Buffer, byteCount: Long) {
throw UnsupportedOperationException()
}
- actual override fun read(sink: Buffer, byteCount: Long): Long = throw UnsupportedOperationException()
+ override fun read(sink: Buffer, byteCount: Long): Long = throw UnsupportedOperationException()
- actual override fun indexOf(b: Byte): Long = throw UnsupportedOperationException()
+ override fun indexOf(b: Byte): Long = throw UnsupportedOperationException()
- actual override fun indexOf(b: Byte, fromIndex: Long): Long = throw UnsupportedOperationException()
+ override fun indexOf(b: Byte, fromIndex: Long): Long = throw UnsupportedOperationException()
- actual override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long = throw UnsupportedOperationException()
+ override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long = throw UnsupportedOperationException()
- actual override fun indexOf(bytes: ByteString): Long = throw UnsupportedOperationException()
+ override fun indexOf(bytes: ByteString): Long = throw UnsupportedOperationException()
- actual override fun indexOf(bytes: ByteString, fromIndex: Long): Long = throw UnsupportedOperationException()
+ override fun indexOf(bytes: ByteString, fromIndex: Long): Long = throw UnsupportedOperationException()
- actual override fun indexOfElement(targetBytes: ByteString): Long = throw UnsupportedOperationException()
+ override fun indexOfElement(targetBytes: ByteString): Long = throw UnsupportedOperationException()
- actual override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long = throw UnsupportedOperationException()
+ override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long = throw UnsupportedOperationException()
- actual override fun rangeEquals(offset: Long, bytes: ByteString): Boolean = throw UnsupportedOperationException()
+ override fun rangeEquals(offset: Long, bytes: ByteString): Boolean = throw UnsupportedOperationException()
- actual override fun rangeEquals(
+ override fun rangeEquals(
offset: Long,
bytes: ByteString,
bytesOffset: Int,
byteCount: Int
): Boolean = throw UnsupportedOperationException()
- actual override fun flush() {
+ override fun flush() {
}
- actual override fun close() {
+ override fun close() {
}
- actual override fun timeout() = Timeout.NONE
+ override fun timeout() = Timeout.NONE
}
diff --git a/okio/src/main/kotlin/okio/Buffer.kt b/okio/src/main/kotlin/okio/Buffer.kt
index 4faf229..00483f1 100644
--- a/okio/src/main/kotlin/okio/Buffer.kt
+++ b/okio/src/main/kotlin/okio/Buffer.kt
@@ -22,64 +22,6 @@
override fun emit(): Buffer
- override fun exhausted(): Boolean
-
- override fun require(byteCount: Long)
-
- override fun request(byteCount: Long): Boolean
-
- override fun peek(): BufferedSource
-
- override fun readByte(): Byte
-
- override fun readShort(): Short
-
- override fun readInt(): Int
-
- override fun readLong(): Long
-
- override fun readShortLe(): Short
-
- override fun readIntLe(): Int
-
- override fun readLongLe(): Long
-
- override fun readDecimalLong(): Long
-
- override fun readHexadecimalUnsignedLong(): Long
-
- override fun readByteString(): ByteString
-
- override fun readByteString(byteCount: Long): ByteString
-
- override fun readFully(sink: Buffer, byteCount: Long)
-
- override fun readAll(sink: Sink): Long
-
- override fun readUtf8(): String
-
- override fun readUtf8(byteCount: Long): String
-
- override fun readUtf8Line(): String?
-
- override fun readUtf8LineStrict(): String
-
- override fun readUtf8LineStrict(limit: Long): String
-
- override fun readUtf8CodePoint(): Int
-
- override fun readByteArray(): ByteArray
-
- override fun readByteArray(byteCount: Long): ByteArray
-
- override fun read(sink: ByteArray): Int
-
- override fun readFully(sink: ByteArray)
-
- override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
-
- override fun skip(byteCount: Long)
-
override fun write(byteString: ByteString): Buffer
override fun writeUtf8(string: String): Buffer
@@ -92,9 +34,7 @@
override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer
- override fun writeAll(source: Source): Long
-
- override fun write(source: Source, byteCount: Long): BufferedSink
+ override fun write(source: Source, byteCount: Long): Buffer
override fun writeByte(b: Int): Buffer
@@ -113,37 +53,4 @@
override fun writeDecimalLong(v: Long): Buffer
override fun writeHexadecimalUnsignedLong(v: Long): Buffer
-
- override fun write(source: Buffer, byteCount: Long)
-
- override fun read(sink: Buffer, byteCount: Long): Long
-
- override fun indexOf(b: Byte): Long
-
- override fun indexOf(b: Byte, fromIndex: Long): Long
-
- override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
-
- override fun indexOf(bytes: ByteString): Long
-
- override fun indexOf(bytes: ByteString, fromIndex: Long): Long
-
- override fun indexOfElement(targetBytes: ByteString): Long
-
- override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
-
- override fun rangeEquals(offset: Long, bytes: ByteString): Boolean
-
- override fun rangeEquals(
- offset: Long,
- bytes: ByteString,
- bytesOffset: Int,
- byteCount: Int
- ): Boolean
-
- override fun flush()
-
- override fun close()
-
- override fun timeout(): Timeout
}