Skip to content

Commit 7a8f0f8

Browse files
author
Matthijs van Otterdijk
committed
make parse_control_word public
1 parent 10106fc commit 7a8f0f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structure/logarray.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl Iterator for LogArrayIterator {
223223

224224
const MAX_LOGARRAY_LEN: u64 = (1 << 56) - 1;
225225

226-
fn parse_control_word(buf: &[u8]) -> (u64, u8) {
226+
pub fn parse_control_word(buf: &[u8]) -> (u64, u8) {
227227
let len_1 = BigEndian::read_u32(buf) as u64;
228228
let width = buf[4];
229229
let len_2 = (BigEndian::read_u32(&buf[4..]) & 0xFFFFFF) as u64; // ignore width byte

0 commit comments

Comments
 (0)