-
Notifications
You must be signed in to change notification settings - Fork 0
/
size.mli
26 lines (21 loc) · 1.36 KB
/
size.mli
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
(**************************************************************************)
(* *)
(* Copyright (C) Jean-Christophe Filliatre *)
(* *)
(* This software is free software; you can redistribute it and/or *)
(* modify it under the terms of the GNU Library General Public *)
(* License version 2.1, with the special exception on linking *)
(* described in file LICENSE. *)
(* *)
(* This software is distributed in the hope that it will be useful, *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *)
(* *)
(**************************************************************************)
(*i $Id: size.mli,v 1.5 2008-07-21 14:53:06 filliatr Exp $ i*)
(* Sizes of ocaml values (in their memory representation).
Sizes are given in words ([size_w]), bytes ([size_b]) or kilobytes
([size_kb]), in a system-independent way. *)
val size_w : 'a -> int
val size_b : 'a -> int
val size_kb : 'a -> int