Function keys::rewrite::rewrite_prefix [−][src]
pub fn rewrite_prefix(
old_prefix: &[u8],
new_prefix: &[u8],
src: &[u8]
) -> Result<Vec<u8>, WrongPrefix>
Rewrites the prefix of a byte array.
pub fn rewrite_prefix(
old_prefix: &[u8],
new_prefix: &[u8],
src: &[u8]
) -> Result<Vec<u8>, WrongPrefix>
Rewrites the prefix of a byte array.