Skip to main content

byte_successor

Function byte_successor 

Source
pub fn byte_successor(key: &[u8]) -> Option<Vec<u8>>
Expand description

Increment-with-carry exclusive successor of key.

Trailing 0xFF bytes wrap to 0 (unlike RocksDB iterate-upper-bound, which only bumps the first non-0xFF). None if every byte is 0xFF.