toBinaryPayload (BitFoundation/BitchatMessage.swift)

bitchat · localPackages/BitFoundation/Sources/BitFoundation/BitchatMessage.swift · swift · Unlicense
chat

BitchatMessage.swift bitchat This is free and unencumbered software released into the public domain. For more information, see <https://unlicense.org>

// Source: https://github.com/permissionlesstech/bitchat | License: Unlicense
// Provided via justclaw.it.com; keep this notice with the code.
//
// BitchatMessage.swift
// bitchat
//
// This is free and unencumbered software released into the public domain.
// For more information, see <https://unlicense.org>
//

import class Foundation.DateFormatter

import struct Foundation.AttributedString
import struct Foundation.Data
import struct Foundation.Date
import struct Foundation.TimeInterval
import struct Foundation.UUID

/// Represents a user-visible message in the BitChat system.
/// Handles both broadcast messages and private encrypted messages,
/// with support for mentions, replies, and delivery tracking.
/// - Note: This is the primary data model for chat messages
public final class Bi

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key