pub fn decode_table_id(key: &[u8]) -> Result<i64> {
    let mut buf = key;
    if buf.read_bytes(TABLE_PREFIX_LEN)? != TABLE_PREFIX {
        return Err(invalid_type!(
            "record key expected, but got {}",
            log_wrappers::Value::key(key)
        ));
    }
    buf.read_i64().map_err(Error::from)
}
/// Decodes table ID from the key.
Decodes table ID from the key.
Decodes table ID from the key .
pub fn decode_table_id(key: &[u8]) -> Result<i64> {
    let mut buf = key;
    if buf.read_bytes(TABLE_PREFIX_LEN)? != TABLE_PREFIX {
        return Err(invalid_type!(
            "record key expected, but got {}",
            log_wrappers::Value::key(key)
        ));
    }
    buf.read_i64().map_err(Error::from)
}
pub fn decode_table_id ( key : & [ u8 ] ) -> Result < i64 > { let mut buf = key ; if buf . read_bytes ( TABLE_PREFIX_LEN ) ? != TABLE_PREFIX { return Err ( invalid_type ! ( " " log_wrappers Value key ( key ) ) ) ; } buf . read_i64 ( ) . map_err ( Error :: from ) }
Decodes table ID from the key.
Decodes table ID from the key .
key
&[u8]