fn asBytes(ptr: anytype) AsBytesReturnType(@TypeOf(ptr))

Given a pointer to a single item, returns a slice of the underlying bytes, preserving pointer attributes.

Parameters

ptr: anytype,