package bap-std

  1. Overview
  2. Docs
The Binary Analysis Platform Standard Library

Install

Dune Dependency

Authors

Maintainers

Sources

v2.2.0.tar.gz
sha256=7c6d0dfe2640e800829617dd150ffe748493fe3f317ed41be44312b2821deb46
md5=5dbc6677d646bec59fd7414f23e88cf8

doc/bap/Bap/Std/Trie/Make/argument-1-Key/index.html

Parameter Make.Key

type t

the type of key

type token

type of token must implement bin_prot, be comparable and sexpable

val bin_shape_token : Core_kernel.Bin_prot.Shape.t
val bin_size_token : token Core_kernel.Bin_prot.Size.sizer
val bin_write_token : token Core_kernel.Bin_prot.Write.writer
val bin_writer_token : token Core_kernel.Bin_prot.Type_class.writer
val bin_read_token : token Core_kernel.Bin_prot.Read.reader
val __bin_read_token__ : (int -> token) Core_kernel.Bin_prot.Read.reader
val bin_reader_token : token Core_kernel.Bin_prot.Type_class.reader
val bin_token : token Core_kernel.Bin_prot.Type_class.t
val compare_token : token -> token -> int
val sexp_of_token : token -> Ppx_sexp_conv_lib.Sexp.t
val token_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> token
val length : t -> int

length key return the amount of tokens in a key

val nth_token : t -> int -> token

nth_token key n the n'th token of key. Should be O(1)

val token_hash : token -> int

hash_token tok efficient hash function for the token type. If nothing efficient came to mind, just use Hashtbl.hash.

OCaml

Innovation. Community. Security.