@@ -22,13 +22,6 @@ This package is designed for the case in which we are serializing some data
22to be sent to another program which expects a serialization format
22to be sent to another program which expects a serialization format
23that we don't control.
23that we don't control.
27−This package is only for writing `ArrayBuffer`s, not reading them.
29−[__purescript-parsing-dataview__](https://pursuit.purescript.org/packages/purescript-parsing-dataview/)
30−for a way to deserialize from `ArrayBuffer` back to Purescript data.
32## Usage Examples
25## Usage Examples
34All `ArrayBuffer` building must occur in `Effect`.
27All `ArrayBuffer` building must occur in `Effect`.
@@ -73,7 +66,7 @@ putStringUtf8 s = do
73 putArrayBuffer stringbuf
66 putArrayBuffer stringbuf
76− arraybuffer <- execPut $ putStringUtf8 "ACAB"
69+ arraybuffer <- execPut $ putStringUtf8 "BLM"
79### Serialize an `Array Int`
72### Serialize an `Array Int`
@@ -96,6 +89,13 @@ do
96 arraybuffer <- execPut $ putArrayInt32 [1,2,3]
89 arraybuffer <- execPut $ putArrayInt32 [1,2,3]
94+This package is only for writing `ArrayBuffer`s, not reading them.
96+[__purescript-parsing-dataview__](https://pursuit.purescript.org/packages/purescript-parsing-dataview/)
97+for a way to deserialize from `ArrayBuffer` back to Purescript data.
99## References
99## References
101* [MDN `ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)
101* [MDN `ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)