File tree Expand file tree Collapse file tree 4 files changed +26
-10
lines changed Expand file tree Collapse file tree 4 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ New features:
4
4
5
5
- Expose module type ` MESSAGE_STORAGE ` which was used as a ` Capnp.Message.Make `
6
6
functor parameter but was previously hidden in ` Capnp__MessageStorage.S ` .
7
+ Expose module ` ListStorageType ` that was previously hidden in
8
+ ` Capnp.MessageSig.ListStorageType ` .
7
9
Stop leaking ` Uint32 ` and ` Uint64 ` in module types. (@jonahbeckford #91 )
8
10
9
11
# v3.6.0
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ module Array = CArray
37
37
module BytesStorage = BytesStorage
38
38
module BytesMessage = Message. BytesMessage
39
39
module Codecs = Codecs
40
+ module ListStorageType = ListStorageType
40
41
module RPC = RPC
41
42
module Runtime = struct
42
43
module BuilderInc = BuilderInc
Original file line number Diff line number Diff line change @@ -3,23 +3,13 @@ let sizeof_uint64 = 8
3
3
4
4
type t =
5
5
| Empty
6
- (* * list(void), no storage required *)
7
-
8
6
| Bit
9
- (* * list(bool), tightly packed bits *)
10
-
11
7
| Bytes1
12
8
| Bytes2
13
9
| Bytes4
14
10
| Bytes8
15
- (* * either primitive values or a data-only struct *)
16
-
17
11
| Pointer
18
- (* * either a pointer to an external object, or a pointer-only struct *)
19
-
20
12
| Composite of int * int
21
- (* * typical struct; parameters are per-element word size for data section
22
- and pointers section, respectively *)
23
13
24
14
let get_byte_count storage_type =
25
15
match storage_type with
Original file line number Diff line number Diff line change
1
+ (* * @canonical Capnp.ListStorageType *)
2
+
3
+ type t =
4
+ | Empty
5
+ (* * list(void), no storage required *)
6
+
7
+ | Bit
8
+ (* * list(bool), tightly packed bits *)
9
+
10
+ | Bytes1
11
+ | Bytes2
12
+ | Bytes4
13
+ | Bytes8
14
+ (* * either primitive values or a data-only struct *)
15
+
16
+ | Pointer
17
+ (* * either a pointer to an external object, or a pointer-only struct *)
18
+
19
+ | Composite of int * int
20
+ (* * typical struct; parameters are per-element word size for data section
21
+ and pointers section, respectively *)
22
+
23
+ val get_byte_count : t -> int
You can’t perform that action at this time.
0 commit comments