summaryrefslogtreecommitdiffstats
path: root/src/buffered_reader
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2017-12-12 22:07:25 +0100
committerNeal H. Walfield <neal@pep.foundation>2017-12-12 22:16:16 +0100
commit557eabdb50d1ca6e8c1bf2b644eec504317ab312 (patch)
tree6153b616f66af2df4e1ec23f1dea49fae175936d /src/buffered_reader
parent5b0d38acf656edb2b9f35e64ccc82ad555c67d30 (diff)
Add initial support for signature subpackets.
Diffstat (limited to 'src/buffered_reader')
-rw-r--r--src/buffered_reader/memory.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buffered_reader/memory.rs b/src/buffered_reader/memory.rs
index aaf54264..327e4bcb 100644
--- a/src/buffered_reader/memory.rs
+++ b/src/buffered_reader/memory.rs
@@ -29,6 +29,12 @@ impl<'a> BufferedReaderMemory<'a> {
cursor: 0,
}
}
+
+ /// Returns the number of bytes that have been consumed by this
+ /// reader.
+ pub fn total_out(&self) -> usize {
+ return self.cursor;
+ }
}
impl<'a> io::Read for BufferedReaderMemory<'a> {