Serialize a constant and compute its content address.
(&self)
| 879 | } |
| 880 | } |
| 881 | |
| 882 | impl ConstructorProj { |
| 883 | pub fn put(&self, buf: &mut Vec<u8>) { |
| 884 | put_u64(self.idx, buf); |
| 885 | put_u64(self.cidx, buf); |
| 886 | put_address(&self.block, buf); |
| 887 | } |
| 888 | |
| 889 | pub fn get(buf: &mut &[u8]) -> Result<Self, String> { |