key = key_exact_type(k, rr->type);
}
- /* Compute materialized sizes of the new data. */
+ /* Compute in-cache size for the new data. */
const knot_rdataset_t *rds_sigs = rr_sigs ? &rr_sigs->rrs : NULL;
const int rr_ssize = rdataset_dematerialize_size(&rr->rrs);
assert(rr_ssize == to_even(rr_ssize));
/** Paired to begin, called both on successes and failures. */
int (*finish)(kr_layer_t *ctx);
- /** Processing an answer from upstream or the answer to the request.
+ /** Process an answer from upstream or from cache.
* Lua API: call is omitted iff (state & KR_STATE_FAIL). */
int (*consume)(kr_layer_t *ctx, knot_pkt_t *pkt);
kr_rnd_buffered(data, size);
/* I would have liked to dump the random data into a size_t directly,
* but that would work well only on little-endian machines,
- * so intsead I hope that the compiler will optimize this out.
+ * so instead I hope that the compiler will optimize this out.
* (Tested via reading assembly from usual gcc -O2 setup.)
* Alternatively we could waste more rnd bytes, but that seemed worse. */
result = 0;