MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / peek_at

Method peek_at

atomic-core/src/diff/token/tokenizer.rs:180–182  ·  view source on GitHub ↗
(&self, offset: usize)

Source from the content-addressed store, hash-verified

178 /// Peek at the byte at position + offset.
179 #[inline]
180 fn peek_at(&self, offset: usize) -> Option<u8> {
181 self.content.get(self.position + offset).copied()
182 }
183
184 /// Consume the current byte and advance position.
185 #[inline]

Callers 2

read_numberMethod · 0.80
nextMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected