aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs
index a19922f..e33fc10 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -15,6 +15,7 @@ pub(crate) fn get_sized_buf(buf: &mut Option<Vec<u8>>, offset: usize, size: usiz
}
}
}
+
fn ensure_buf_has_size(buf: &mut Vec<u8>, total_size: usize) {
let cur_len = buf.len();
if cur_len >= total_size {