package eqaf

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file eqaf_bytes.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
OCaml

Innovation. Community. Security.