slice_ref_uint8 class

\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.

Inheritance

Constructors

slice_ref_uint8()

Properties

hashCode int
The hash code for this object.
no setterinherited
len int
getter/setter pair
ptr Pointer<Uint8>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited