-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capnp.MessageSig.S is public (aka. part of wrapped capnp.ml), and has a ListStorage module. But ListStorage.t has a storage_type field of type 'Capnp.MessageSig.ListStorageType.t' that is not public. This commit makes ListStorageType public.
- Loading branch information
1 parent
20f34db
commit 7e37b41
Showing
3 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
(** @canonical Capnp.ListStorageType *) | ||
|
||
type t = | ||
| Empty | ||
(** list(void), no storage required *) | ||
|
||
| Bit | ||
(** list(bool), tightly packed bits *) | ||
|
||
| Bytes1 | ||
| Bytes2 | ||
| Bytes4 | ||
| Bytes8 | ||
(** either primitive values or a data-only struct *) | ||
|
||
| Pointer | ||
(** either a pointer to an external object, or a pointer-only struct *) | ||
|
||
| Composite of int * int | ||
(** typical struct; parameters are per-element word size for data section | ||
and pointers section, respectively *) | ||
|
||
val get_byte_count : t -> int |