File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/jvmMain/kotlin/org/golem/raknet Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 11kotlin.code.style =official
22
33group =org.golem
4- version =0.5.4
4+ version =0.5.5
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ fun Any?.decode(buffer: ByteBuf): Any? {
7171 is Boolean -> buffer.readBoolean()
7272 is String -> buffer.readString()
7373 is ByteArray -> buffer.readToByteArray(this .size)
74+ is ByteBuf -> buffer.readBytes(this )
7475 is Decodable -> this .decode(buffer)
7576 else -> null
7677 }
@@ -90,6 +91,7 @@ fun Any?.encode(buffer: ByteBuf) {
9091 buffer.writeCharSequence(this , Charsets .UTF_8 )
9192 }
9293 is ByteArray -> buffer.writeBytes(this )
94+ is ByteBuf -> buffer.writeBytes(this )
9395 is Encodable -> this .encode(buffer)
9496 is InetSocketAddress -> {
9597 when (val inner: InetAddress = this .address) {
You can’t perform that action at this time.
0 commit comments