Add a TODO comment about checking bounds
commitd09a236c93c1d6a3627f49a86fac37ad3ee082a3
authorHarendra Kumar <harendra@composewell.com>
dateThu 17 Aug 2023, 16:57 (3 years ago)
parent356eab0
core/src/Streamly/Internal/Data/Unbox.hs+2
@@ -371,6 +371,8 @@ class Unbox a where
371371 Int -> MutableByteArray -> a -> IO ()
372372 pokeByteIndex i arr = genericPokeByteIndex arr i
373373
374+-- XXX Add asserts to check bounds
375+
374376#define DERIVE_UNBOXED(_type, _constructor, _readArray, _writeArray, _sizeOf) \
375377instance Unbox _type where { \
376378; {-# INLINE peekByteIndex #-} \