off = 0;
for (i=0;i<rd_count;i++)
{
+#if 0
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Serializing record %u with flags %d and expiration time %llu\n",
i,
rd[i].flags,
(unsigned long long) rd[i].expiration_time);
+#endif
rec.expiration_time = GNUNET_htonll (rd[i].expiration_time);
rec.data_size = htonl ((uint32_t) rd[i].data_size);
rec.record_type = htonl (rd[i].record_type);
return GNUNET_SYSERR;
dest[i].data = &src[off];
off += dest[i].data_size;
+#if 0
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Deserialized record %u with flags %d and expiration time %llu\n",
i,
dest[i].flags,
(unsigned long long) dest[i].expiration_time);
+#endif
}
return GNUNET_OK;
}