Skip to content

Commit 6a5e9b9

Browse files
committed
der: add fn SliceWriter.position
1 parent d34d3f9 commit 6a5e9b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

der/src/writer/slice.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ impl<'a> SliceWriter<'a> {
125125
Ok(slice)
126126
}
127127

128-
pub(crate) fn position(&self) -> Length {
128+
/// Returns current position in the buffer.
129+
pub fn position(&self) -> Length {
129130
self.position
130131
}
131132
}

0 commit comments

Comments
 (0)