on master help sign in
Update the note on not serializing absolute offsets
2c22584Adithya Kumar
core/src/Streamly/Internal/Data/Serialize/Type.hs+2−2
@@ -50,8 +50,8 @@ import GHC.Exts
50-- IMPORTANT
50-- IMPORTANT
51-- =========
51-- =========
52--
52--
53−-- Don't ever serialize the offsets in the encoding. Serialize length instead.
53+-- Don't ever serialize the absolute offsets in the encoding. Serialize length
54−-- Offsets are NOT stable.
54+-- instead. Absolute offsets are NOT stable.
55--
55--
56-- They will only work if the start offset of the Array when encoding and
56-- They will only work if the start offset of the Array when encoding and
57-- decoding is the same. This is almost never the case.
57-- decoding is the same. This is almost never the case.