reprs:
VoidPointer
TypedPointer
, stores target type in REPRCheckedPointer
, stores target type in REPR and bounds in body
types:
OpaquePointer
backed byVoidPointer
TransparentPointer
backed byTypedPointer
, pass-through method callsMovablePointer
backed byCheckedPointer
, allows pointer arithmetics and explicitderef()
UnsafePointer
backed byVoidPointer
, allows byte-wise pointer arithmetics and explicitcast()
to other pointer types
according to arnsholt, we probably don't need
TypedPointer
- just set the REPR data to the type object and leave itNULL
for opaque pointers