fixed minor bug :)
This commit is contained in:
@@ -102,8 +102,8 @@ inline val ByteArray.inputStream : ByteArrayInputStream
|
|||||||
|
|
||||||
inline fun ByteArray.inputStream(offset: Int, length: Int) = ByteArrayInputStream(this, offset, length)
|
inline fun ByteArray.inputStream(offset: Int, length: Int) = ByteArrayInputStream(this, offset, length)
|
||||||
|
|
||||||
inline fun ByteArray.toString(encoding: String?):String {
|
inline fun ByteArray.toString(encoding: String?): String {
|
||||||
if(encoding==null) {
|
if (encoding != null) {
|
||||||
return String(this, encoding)
|
return String(this, encoding)
|
||||||
} else {
|
} else {
|
||||||
return String(this)
|
return String(this)
|
||||||
|
|||||||
Reference in New Issue
Block a user