Skip to content

Instantly share code, notes, and snippets.

@achansonjr
achansonjr / hexdump.swift
Last active January 23, 2023 23:40 — forked from kristopherjohnson/hexdump.swift
Swift: Generate hex dumps for arrays/sequences of bytes.
// hexdump.swift
//
// This file contains library functions for generating hex dumps.
//
// The functions intended for client use are
//
// - `printHexDumpForBytes(_:)`
// - `printHexDumpForStandardInput()`
// - `hexDumpStringForBytes(_:)`
// - `logHexDumpForBytes(_:)`