plain
A plain hex dump format compatible with xxd
CLI utility.
static let plain: ByteBuffer.HexDumpFormat
A plain hex dump format compatible with xxd
CLI utility.
static let plain: ByteBuffer.HexDumpFormat
import NIOCore
The core abstractions that make up SwiftNIO.
struct HexDumpFormat
Describes a ByteBuffer hexDump format. Can be either xxd output compatible, or hexdump compatible.
struct ByteBuffer
ByteBuffer
stores contiguously allocated raw bytes. It is a random and sequential accessible sequence of zero or more bytes (octets).
static let compact: ByteBuffer.HexDumpFormat
A hex dump analog to plain
format but without whitespaces.
static let detailed: ByteBuffer.HexDumpFormat
A hex dump format compatible with hexdump
command line utility.
static func compact(maxBytes: Int) -> ByteBuffer.HexDumpFormat
A hex dump analog to plain
format but without whitespaces. This format will dump first maxBytes / 2
bytes, and the last maxBytes / 2
bytes, with a placeholder in between.
static func detailed(maxBytes: Int) -> ByteBuffer.HexDumpFormat
A hex dump format compatible with hexdump
command line tool. This format will dump first maxBytes / 2
bytes, and the last maxBytes / 2
bytes, with a placeholder in between.
static func plain(maxBytes: Int) -> ByteBuffer.HexDumpFormat
A detailed hex dump format compatible with xxd
, clipped to maxBytes
bytes dumped. This format will dump first maxBytes / 2
bytes, and the last maxBytes / 2
bytes, replacing the rest with “ … “.