Make Any.contentToString internal

This commit is contained in:
Him188 2019-11-28 22:07:49 +08:00
parent e4e519eb36
commit 42722aa1cd

View File

@ -112,7 +112,7 @@ class ProtoMap(map: MutableMap<ProtoFieldId, Any>) : MutableMap<ProtoFieldId, An
}*/ }*/
} }
fun Any.contentToString(prefix: String = ""): String = when (this) { internal fun Any.contentToString(prefix: String = ""): String = when (this) {
is UInt -> "0x" + this.toUHexString("") + "($this)" is UInt -> "0x" + this.toUHexString("") + "($this)"
is UByte -> "0x" + this.toUHexString() + "($this)" is UByte -> "0x" + this.toUHexString() + "($this)"
is UShort -> "0x" + this.toUHexString("") + "($this)" is UShort -> "0x" + this.toUHexString("") + "($this)"