(reader: R, v: Version)
| 48 | } |
| 49 | |
| 50 | fn decode_internal<R: Read>(reader: R, v: Version) -> io::Result<Option<Self>> { |
| 51 | use Version::*; |
| 52 | match v { |
| 53 | V0 => Self::decode_v0(reader), |
| 54 | V1 => Self::decode_v1(reader), |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | fn decode_v0<R: Read>(mut reader: R) -> io::Result<Option<Self>> { |
| 59 | let mut hdr = [0; Self::LEN - 8]; |
nothing calls this directly
no test coverage detected