val builder : unit -> S.attachments
builder () is a fresh writable attachments array.
cap i t is the capability at index
t. The reference count is increased by one.
val clear_cap : S.attachments -> int -> unit
Replace cap at index
null and dec_ref it.
add_cap t cap stores
t must have been created by
builder. Increases the ref-count on
cap by one.
val release_caps : S.attachments -> unit
release_caps a decreases the ref-count of every capability in