Add new bytes to the constant data.
(mut self, bytes: impl IntoBytes)
| 98 | |
| 99 | /// Add new bytes to the constant data. |
| 100 | pub fn append(mut self, bytes: impl IntoBytes) -> Self { |
| 101 | let mut to_add = bytes.into_bytes(); |
| 102 | self.0.append(&mut to_add); |
| 103 | self |
| 104 | } |
| 105 | |
| 106 | /// Expand the size of the constant data to `expected_size` number of bytes by adding zeroes |
| 107 | /// in the high-order byte slots. |