Serialize without tag header (for use within Env section serialization).
(&self, buf: &mut Vec<u8>)
| 30 | |
| 31 | /// Serialize without tag header (for use within Env section serialization). |
| 32 | pub fn put(&self, buf: &mut Vec<u8>) { |
| 33 | buf.extend_from_slice(self.secret.as_bytes()); |
| 34 | buf.extend_from_slice(self.payload.as_bytes()); |
| 35 | } |
| 36 | |
| 37 | /// Deserialize without tag header (for use within Env section serialization). |
| 38 | pub fn get(buf: &mut &[u8]) -> Result<Self, String> { |
no test coverage detected