Expand description
Byte manipulation utilities.
This module provides utilities for working with byte sequences, including pattern matching, escaping, and conversion.
Structs§
- Escaped
Bytes - A wrapper for bytes that implements Display with escaping.
Functions§
- escape_
bytes - Escape bytes for display.
- find_
all_ patterns - Find all occurrences of a pattern in a byte slice.
- find_
pattern - Find a pattern in a byte slice.
- hexdump
- Convert bytes to a human-readable hexdump format.
- replace_
pattern - Replace all occurrences of a pattern in a byte slice.
- strip_
ansi - Strip ANSI escape sequences from bytes.
- to_
visible_ string - Convert bytes to a lossy UTF-8 string with control characters visible.
- unescape_
bytes - Parse an escaped string back to bytes.