bytes字节与字符串转换工具
bytes 工具用于在字节长度字符串(如 “5kb”)与长整数值之间进行转换,方便数据处理与显示。
安装与使用
安装命令:
$ clib install clibs/file
API 接口
-
long string_to_bytes (const char *str): 将长度字符串转换为
long整数值。 -
char * bytes_to_string (long bytes): 将字节数转换为字符串表示。
使用示例:
下载地址
用户评论