streamly
streamly copied to clipboard
Rename MutArray APIs to follow naming conventions
castUnsafe => unsafeCast
newArrayWith => emptyWithAligned
getSliceUnsafe => unsafeGetSlice
createOfWith => createWithOf (argument order convention)
putIndexUnsafe => unsafePutIndex
modifyIndexUnsafe => unsafeModifyIndex
getIndexUnsafe => unsafeGetIndex
realloc => reallocBytes
reallocWith => reallocBytesWith
snocUnsafe => unsafeSnoc
spliceUnsafe => unsafeSplice
pokeAppend => poke
pokeAppendMay => pokeMay
pokeSkipUnsafe => unsafePokeSkip
peekUncons => peek
peekUnconsUnsafe => unsafePeek
peekSkipUnsafe => unsafePeekSkip
pinnedWriteNAligned is listed under deprecated but not marked DEPRECATED.
Suggestions:
pokeAppend => snocBytes, snocAsBytes
pokeAppendMay => snocBytesMay, snocAsBytesMay
This is already done in https://github.com/composewell/streamly/pull/2792