(self)
| 229 | value.serialize(&mut *self.w) |
| 230 | } |
| 231 | fn finish(self) -> SResult<()> { |
| 232 | if let Some((len, bytes)) = self.pending { |
| 233 | if len != bytes.len() { |
| 234 | return Err(Error("sequence length mismatch".into())); |
| 235 | } |
| 236 | self.w.byte_sequence(&bytes)?; |
| 237 | } |
| 238 | self.w.ctx = self.parent; |
| 239 | Ok(()) |
| 240 | } |
| 241 | } |
| 242 | macro_rules! sequence { |
| 243 | ($trait:ident,$method:ident) => { |
no test coverage detected