equal
deleted
inserted
replaced
55 } |
55 } |
56 } |
56 } |
57 |
57 |
58 /// Value of the inline flag. |
58 /// Value of the inline flag. |
59 pub fn is_inline(&self) -> bool { |
59 pub fn is_inline(&self) -> bool { |
60 is_inline(&self.bytes) |
60 self.offsets.is_some() |
61 } |
61 } |
62 |
62 |
63 /// Return a slice of bytes if `revlog` is inline. Panic if not. |
63 /// Return a slice of bytes if `revlog` is inline. Panic if not. |
64 pub fn data(&self, start: usize, end: usize) -> &[u8] { |
64 pub fn data(&self, start: usize, end: usize) -> &[u8] { |
65 if !self.is_inline() { |
65 if !self.is_inline() { |