Utility functions to parse/emit a range of bytes.