
2 May
2009
2 May
'09
11:16 a.m.
2009/05/02 Krzysztof Skrzętnicki
2009/05/02 Jason Dusek
: I believe Data.Binary includes a header with the data it serializes. In consequence, the second and all following arrays will be invisible.
I didn't check the Binary instance for arrays, however I belive it's not true. Consider Binary instances for tuples:
These instances describe serializers for tuples; however, there is nothing preventing Data.Binary from tacking on a length header or anything else like that when `encode` is called. The original poster should try serializing a tuple of arrays instead of serializing each array individually.
If what you are saying would be true, the tuple instances would be incorrect for array tuples.
What is an array tuple? -- Jason Dusek