Decode a stored capture.
(bytes: &[u8])
| 193 | |
| 194 | /// Decode a stored capture. |
| 195 | pub fn from_json(bytes: &[u8]) -> AgentResult<Self> { |
| 196 | serde_json::from_slice(bytes).map_err(|e| crate::error::AgentError::CaptureInvalid { |
| 197 | reason: format!("JSON parse error: {}", e), |
| 198 | }) |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | /// Decode the hex MAC key into exactly 32 bytes. |
nothing calls this directly
no outgoing calls
no test coverage detected