write followed by read should give an equivalent T
write followed by read should give an equivalent T
This is a law that serialization must follow. It is here for documentation and for use within tests without any dependence on specific test frameworks.
forAll(roundTripLaw[T]) in a valid test in scalacheck style
If two items are equal, they should serialize byte for byte equivalently
The sizes must match and be correct if they are present
This is a constant for us to reuse in Serialization.
This is a constant for us to reuse in Serialization.write
Do these two items write equivalently?