fn bytesAsSlice(comptime T: type, bytes: anytype) BytesAsSliceReturnType(T, @TypeOf(bytes))

Given a slice of bytes, returns a slice of the specified type backed by those bytes, preserving pointer attributes.

Parameters

T: type,
bytes: anytype,