Binary serializer example