This commit is contained in:
2026-03-12 10:34:42 +08:00
parent bc8927db26
commit 454cd53553
17 changed files with 245 additions and 167 deletions
@@ -16,7 +16,7 @@
* ProjectName mingli-utils
* ModuleName mingli-utils.main
* CurrentFile ArrayUtils.kt
* LastUpdate 2026-03-11 08:42:08
* LastUpdate 2026-03-12 10:08:42
* UpdateUser MingLiPro
*/
@@ -25,7 +25,7 @@
package com.mingliqiye.utils.array
import com.mingliqiye.utils.base.code.Base16
import com.mingliqiye.utils.base.BaseType
/**
@@ -35,7 +35,7 @@ import com.mingliqiye.utils.base.code.Base16
* @since 4.6.0
* @see toHexByteArray
*/
fun ByteArray.toHexString(): String = Base16.encode(this).uppercase()
fun ByteArray.toHexString(): String = BaseType.BASE16.encode(this).uppercase()
/**
* 将十六进制字符串转换为字节数组
@@ -45,7 +45,7 @@ fun ByteArray.toHexString(): String = Base16.encode(this).uppercase()
* @since 4.6.0
* @see toHexString
*/
fun String.toHexByteArray(): ByteArray = Base16.decode(this.lowercase())
fun String.toHexByteArray(): ByteArray = BaseType.BASE16.decode(this.lowercase())
/**
* 将当前数组的指定范围复制到目标数组