Liking cljdoc? Tell your friends :D

packet.utils


*big-endian*clj

source

bcd+->intclj

(bcd+->int bs)

bcd序列转换为有符号整数

bcd序列转换为有符号整数
sourceraw docstring

bcd+->uintclj

(bcd+->uint bs)

bcd序列转换为无符号整数

bcd序列转换为无符号整数
sourceraw docstring

bcd->byteclj

(bcd->byte b)

一字节压缩bcd码转换为整数

一字节压缩bcd码转换为整数
sourceraw docstring

byte->bcdclj

(byte->bcd i)

一字节整数转换为压缩bcd码

一字节整数转换为压缩bcd码
sourceraw docstring

byte->hexclj

(byte->hex b)

一字节整数转换为用两个16进制字符表示的字符串

一字节整数转换为用两个16进制字符表示的字符串
sourceraw docstring

bytes->hex-stringclj

(bytes->hex-string bs)

字节序列转换为16进制字符串

字节序列转换为16进制字符串
sourceraw docstring

bytes->intclj

(bytes->int bs)

字节序列转换为有符号整数

字节序列转换为有符号整数
sourceraw docstring

bytes->uintclj

(bytes->uint bs)

字节序列转换为无符号整数

字节序列转换为无符号整数
sourceraw docstring

contains-in?clj

(contains-in? m ks)

映射中是否存在指定的键序列,如 (contains-in? {:a {:b nil}} [:a :b])返回true (contains-in? {:a :any} [:a :b])返回false

映射中是否存在指定的键序列,如
(contains-in? {:a {:b nil}} [:a :b])返回true
(contains-in? {:a :any} [:a :b])返回false
sourceraw docstring

digit?clj

(digit? c)

判断字符是否是数字

判断字符是否是数字
sourceraw docstring

find-firstclj

(find-first pred? coll)

在集合coll中寻找第一个满足pred条件的元素

在集合coll中寻找第一个满足pred条件的元素
sourceraw docstring

find-lastclj

(find-last pred? coll)

在集合coll中寻找第一个满足pred条件的元素

在集合coll中寻找第一个满足pred条件的元素
sourceraw docstring

flat-allclj

(flat-all pred coll)

深度提取满足条件的元素,包括coll自己

深度提取满足条件的元素,包括coll自己
sourceraw docstring

getfclj

(getf coll e)

得到序列中指定元素的下一个元素

得到序列中指定元素的下一个元素
sourceraw docstring

hex->byteclj

(hex->byte s)

16进制字符串转换为1字节整数

16进制字符串转换为1字节整数
sourceraw docstring

hex-string->bytesclj

(hex-string->bytes s)

空格分隔的16进制字符串转换为字节序列

空格分隔的16进制字符串转换为字节序列
sourceraw docstring

in?clj

(in? x & xs)

判断某个值是否在序列中

判断某个值是否在序列中
sourceraw docstring

index-ofclj

(index-of pred xs)

xs中第一个满足pred条件的元素的索引

xs中第一个满足pred条件的元素的索引
sourceraw docstring

int->bcd+clj

(int->bcd+ v len)

有符号整数转换为bcd序列

有符号整数转换为bcd序列
sourceraw docstring

int->bytesclj

(int->bytes v len)

有符号整数转换为字节序列

有符号整数转换为字节序列
sourceraw docstring

keyword-mapclj

(keyword-map m)

将一个映射所有层次的键都关键字化

将一个映射所有层次的键都关键字化
sourceraw docstring

last-index-ofclj

(last-index-of pred xs)

xs中最后一个满足pred条件的元素的索引

xs中最后一个满足pred条件的元素的索引
sourceraw docstring

leader-partitionclj

(leader-partition pred coll)

将满足条件的元素及其后面的元素分在同一组,直到遇到另一个满足条件的元素为止

将满足条件的元素及其后面的元素分在同一组,直到遇到另一个满足条件的元素为止
sourceraw docstring

line-errorclj

(line-error line msg & more)

在宏中应用,抛出带行号的错误。解析器和构建器不会抛出错误,只会返回错误

在宏中应用,抛出带行号的错误。解析器和构建器不会抛出错误,只会返回错误
sourceraw docstring

positionsclj

(positions pred xs)

xs中满足条件pred的元素的索引序列

xs中满足条件pred的元素的索引序列
sourceraw docstring

remove-firstclj

(remove-first pred? coll)
source

remove-lastclj

(remove-last pred? coll)
source

removefclj

(removef coll e)

移除序列中指定元素及其下一个元素

移除序列中指定元素及其下一个元素
sourceraw docstring

reverse-split-withclj

(reverse-split-with pred? coll)
source

uint->bcd+clj

(uint->bcd+ v len)

无符号整数转换为bcd序列

无符号整数转换为bcd序列
sourceraw docstring

uint->bytesclj

(uint->bytes v len)

无符号整数转换为字节序列

无符号整数转换为字节序列
sourceraw docstring

valid-bcd?clj

(valid-bcd? byte)

判断一字节压缩bcd码的有效性

判断一字节压缩bcd码的有效性
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close