This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
32
unikernel/duniverse/eqaf/lib/eqaf_bytes.ml
Normal file
32
unikernel/duniverse/eqaf/lib/eqaf_bytes.ml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
let equal a b =
|
||||
let a' = Bytes.unsafe_to_string a in
|
||||
let b' = Bytes.unsafe_to_string b in
|
||||
Eqaf.equal a' b'
|
||||
|
||||
let compare_le_with_len ~len a b =
|
||||
let a' = Bytes.unsafe_to_string a in
|
||||
let b' = Bytes.unsafe_to_string b in
|
||||
Eqaf.compare_le_with_len ~len a' b'
|
||||
|
||||
let compare_le a b =
|
||||
let a' = Bytes.unsafe_to_string a in
|
||||
let b' = Bytes.unsafe_to_string b in
|
||||
Eqaf.compare_le a' b'
|
||||
|
||||
let compare_be_with_len ~len a b =
|
||||
let a' = Bytes.unsafe_to_string a in
|
||||
let b' = Bytes.unsafe_to_string b in
|
||||
Eqaf.compare_be_with_len ~len a' b'
|
||||
|
||||
let compare_be a b =
|
||||
let a' = Bytes.unsafe_to_string a in
|
||||
let b' = Bytes.unsafe_to_string b in
|
||||
Eqaf.compare_be a' b'
|
||||
|
||||
let find_uint8 ?off ~f b =
|
||||
let str = Bytes.unsafe_to_string b in
|
||||
Eqaf.find_uint8 ?off ~f str
|
||||
|
||||
let exists_uint8 ?off ~f b =
|
||||
let str = Bytes.unsafe_to_string b in
|
||||
Eqaf.exists_uint8 ?off ~f str
|
||||
Loading…
Add table
Add a link
Reference in a new issue