Serialize this BinaryRow to bytes (arity prefix + data), the inverse of `from_serialized_bytes`.
(&self)
| 97 | |
| 98 | /// Serialize this BinaryRow to bytes (arity prefix + data), the inverse of `from_serialized_bytes`. |
| 99 | pub fn to_serialized_bytes(&self) -> Vec<u8> { |
| 100 | let mut buf = Vec::with_capacity(4 + self.data.len()); |
| 101 | buf.extend_from_slice(&self.arity.to_be_bytes()); |
| 102 | buf.extend_from_slice(&self.data); |
| 103 | buf |
| 104 | } |
| 105 | |
| 106 | pub fn arity(&self) -> i32 { |
| 107 | self.arity |
no test coverage detected