Serializes a value to a
ByteString. In order to do this, it
first allocates a
ByteString of the correct size (based on
size), and then uses
poke to fill it.
Safety of this function depends on correctness of the
Store
instance. If
size returns a. The good news is that this isn't
an issue if you use well-tested manual instances (such as those from
this package) combined with auomatic definition of instances.