@@ -42,6 +42,19 @@ import qualified Streamly.Internal.Data.Array as Array
43import GHC.Exts
43import GHC.Exts
45+--------------------------------------------------------------------------------
47+--------------------------------------------------------------------------------
52+-- Don't ever serialize the offsets in the encoding. Serialize length instead.
53+-- Offsets are NOT stable.
55+-- They will only work if the start offset of the Array when encoding and
56+-- decoding is the same. This is almost never the case.
45--------------------------------------------------------------------------------
58--------------------------------------------------------------------------------
47--------------------------------------------------------------------------------
60--------------------------------------------------------------------------------