此方法返回 Bitstring 中包含的字节数。
byte_size(bitstring)
bitstring - 这是需要确定字节数的btistring。
该方法返回 Bitstring 中包含的字节数。
链接:https://www.learnfk.comhttps://www.learnfk.com/erlang/erlang-byte-size.html
来源:LearnFk无涯教程网
-module(helloLearnfk). -export([start/0]). start() -> io:fwrite("~p~n",[byte_size(<<1,2,3>>)]).
当我们运行上面的程序时,我们将得到以下输出。
3
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
PPT设计进阶 · 从基础操作到高级创意 -〔李金宝(Bobbie)〕