crate::ix!();
pub struct Block {
data: *const u8,
size: usize,
restart_offset: u32,
owned: bool,
}
unsafe impl Send for Block {}
unsafe impl Sync for Block {}
impl Drop for Block {
fn drop(&mut self) {
todo!();
}
}
impl Block {
pub fn size(&self) -> usize {
todo!();
}
#[inline] pub fn num_restarts(&self) -> u32 {
todo!();
}
pub fn new(contents: &BlockContents) -> Self {
todo!();
}
pub fn new_iterator(&mut self, comparator: Box<dyn SliceComparator>) -> *mut LevelDBIterator {
todo!();
}
}
#[inline] pub fn decode_entry(
p: *const u8,
limit: *const u8,
shared: *mut u32,
non_shared: *mut u32,
value_length: *mut u32) -> *const u8 {
todo!();
}
pub struct BlockIter {
base: LevelDBIterator,
comparator: Box<dyn SliceComparator>,
data: *const u8,
restarts: u32,
num_restarts: u32,
current: u32,
restart_index: u32,
key_: String,
value: Slice,
status: Status,
}
impl BlockIter {
#[inline] pub fn compare(&self,
a: &Slice,
b: &Slice) -> i32 {
todo!();
}
#[inline] pub fn next_entry_offset(&self) -> u32 {
todo!();
}
pub fn get_restart_point(&mut self, index: u32) -> u32 {
todo!();
}
pub fn seek_to_restart_point(&mut self, index: u32) {
todo!();
}
pub fn new(
comparator: Box<dyn SliceComparator>,
data: *const u8,
restarts: u32,
num_restarts: u32) -> Self {
todo!();
}
pub fn valid(&self) -> bool {
todo!();
}
pub fn status(&self) -> crate::Status {
todo!();
}
pub fn key(&self) -> Slice {
todo!();
}
pub fn value(&self) -> Slice {
todo!();
}
pub fn next(&mut self) {
todo!();
}
pub fn prev(&mut self) {
todo!();
}
pub fn seek(&mut self, target: &Slice) {
todo!();
}
pub fn seek_to_first(&mut self) {
todo!();
}
pub fn seek_to_last(&mut self) {
todo!();
}
pub fn corruption_error(&mut self) {
todo!();
}
pub fn parse_next_key(&mut self) -> bool {
todo!();
}
}