Get the length of the data
(&self)
| 136 | |
| 137 | /// Get the length of the data |
| 138 | pub fn len(&self) -> usize { |
| 139 | match self { |
| 140 | MappedValue::Memory(data) => data.len(), |
| 141 | MappedValue::Mapped { length, .. } => *length, |
| 142 | MappedValue::Reference(data) => data.len(), |
| 143 | MappedValue::Small(small) => small.max_text_length(), |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | /// Check if the value is empty |
| 148 | pub fn is_empty(&self) -> bool { |
no test coverage detected