Thanks Simon, I’ve tried this approach, but the disassembly still indicates it calls a function julia_pointer, which is overhead I’d like to avoid if possible. On March 23, 2015 at 6:11:08 PM, Simon Danisch ([email protected]) wrote:
unsafe_read_t(T::DataType, x::Vector{Uint8}, byte_offset::Integer) =
unsafe_load(Ptr{T}(pointer(x, byte_offset)), 1)
