-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export Typed.part' #27
Comments
@jamesdbrock could you propose an expected type signature? I'm not sure if I completely understand what you're asking for. |
I'm just proposing to add This one: |
Oh, I've been assuming that I could work with I can see now that probably no-one would ever want to construct a non-aligned |
I mean, it might make sense. I personally share an If I recall correctly, there is a way to slice into |
Cool, thanks for maintaining this library, it's really nice. |
Wow I feel silly, I forgot this is actually a component of the library's FFI already x_x I'm exposing it now, sorry for the delay! |
The
Typed.part
function takes anIndex
as its second argument, in units of the number of typed elements. What if we want to make anArrayView
which doesn't start in theArrayBuffer
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 aByteOffset
type for the second argument.The text was updated successfully, but these errors were encountered: