(self)
| 278 | } |
| 279 | |
| 280 | fn finish(self) -> Result<Vec<u8>, OperationCodecError> { |
| 281 | if self.bytes.len() > MAX_OPERATION_OBJECT_BYTES { |
| 282 | return Err(OperationCodecError::new(format!( |
| 283 | "canonical operation object exceeds {MAX_OPERATION_OBJECT_BYTES} bytes" |
| 284 | ))); |
| 285 | } |
| 286 | Ok(self.bytes) |
| 287 | } |
| 288 | |
| 289 | fn reserve(&self, additional: usize) -> Result<(), OperationCodecError> { |
| 290 | let total = self |
no test coverage detected