<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p style="color: #777777;">
<a href="https://gitlab.com/simo5">Simo Sorce</a>
commented:
</p>
<div style="">
<p dir="auto">I would add some more comments on the _sync function so a reader knows that
a) it is really only needed when we need to write back from an internal block that was needed because of a fragmented iovec not aligning on blocksized boundaries
b) that walking backwards is fine because we only ever sync a full block anyway.</p>
<p dir="auto">Other than that the latest revision of _sync() is quite fine once you understand the assumptions, and th code looks correct.</p>
<p dir="auto">I would also add a test vector that is more fragmented (with odd sized chunks)  in the middle where a block is split over at least 3 different vectors, to make sure all corner cases are always tested in case of future modification.</p>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/merge_requests/1085#note_225660004">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/6b3375359faf2240fcd8682095b341af/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Merge request","url":"https://gitlab.com/gnutls/gnutls/merge_requests/1085#note_225660004"}}</script>


</p>
</div>
</body>
</html>