The Typed.part function takes an Index as its second argument, in units of the number of typed elements. What if we want to make an ArrayView which doesn't start in the ArrayBuffer at a typed element boundary?
https://github.com/jacereda/purescript-arraybuffer/blob/7f90bc44247dcbeab70caef5d373833286468266/src/Data/ArrayBuffer/Typed.purs#L137-L137
I think this library should also export the Typed.part' function, which is the same but with a ByteOffset type for the second argument.
The
Typed.partfunction takes anIndexas its second argument, in units of the number of typed elements. What if we want to make anArrayViewwhich doesn't start in theArrayBufferat a typed element boundary?https://github.com/jacereda/purescript-arraybuffer/blob/7f90bc44247dcbeab70caef5d373833286468266/src/Data/ArrayBuffer/Typed.purs#L137-L137
I think this library should also export the
Typed.part'function, which is the same but with aByteOffsettype for the second argument.