|
CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
|
Helper template for representing a sealed capability created by the allocator's token API. More...
#include <token.h>
Public Member Functions | |
| Sealed (void *sealedPointer) | |
| template<typename U> | |
| Sealed (U *sealedPointer) | |
| Explicit constructor from a sealed T*. | |
| operator decltype | sealedPointer () |
| Implicitly convert back to the wrapped value. | |
| CHERI_SEALED (T *) get() | |
| Explicitly convert to the real type. | |
| bool | is_valid () |
| Return the tag of the underlying pointer. | |
Helper template for representing a sealed capability created by the allocator's token API.
|
inline |
Explicit constructor from a sealed T*.
This is explicit because this is used only in APIs that want to expose their internal sealed type as a public type.
Definition at line 223 of file token.h.
References sealedPointer().
|
inline |
Explicitly convert to the real type.
This is explicit because the resulting value cannot be used as a T* in the general case, it can be used only as an opaque T* that can be unsealed to give a usable T*.
Definition at line 238 of file token.h.
References sealedPointer().
|
inline |
|
inline |
Implicitly convert back to the wrapped value.
Definition at line 228 of file token.h.
References sealedPointer().
Referenced by CHERI_SEALED(), Sealed(), and sealedPointer().