slice_ref_uint8_t typedef

slice_ref_uint8_t = slice_ref_uint8

\brief &'lt [T] but with a guaranteed #[repr(C)] layout.

C layout (for some given type T)

typedef struct {
// Cannot be NULL
T * ptr;
size_t len;
} slice_T;

Nullable pointer?

If you want to support the above typedef, but where the ptr field is allowed to be NULL (with the contents of len then being undefined) use the Option< slice_ptr<_> > type.

Implementation

typedef slice_ref_uint8_t = slice_ref_uint8;