BinaryImageInfo
NewiOSmacOSpublic struct BinaryImageInfo : Codable, SendableA type that represents a binary image loaded in the crashed process.
Declaration
public struct BinaryImageInfo : Codable, Sendable {
/// The path to the binary image.
public let path: String
/// The UUID of the binary image.
public let uuid: UUID?
/// The base address of the binary image.
public let baseAddress: UInt64
/// The size of the binary image.
public let size: UInt64
/// The binary image's CPU type.
public let cpuType: cpu_type_t
/// The binary image's CPU subtype.
public let cpuSubType: cpu_subtype_t
/// Creates a binary image info instance.
/// - Parameters:
/// - path: The path to the binary image.
/// - uuid: The UUID of the binary image.
/// - baseAddress: The base address of the binary image.
/// - size: The size of the binary image.
/// - cpuType: The binary image's CPU type.
/// - cpuSubType: The binary image's CPU subtype.
public init(path: String, uuid: UUID?, baseAddress: UInt64, size: UInt64, cpuType: cpu_type_t, cpuSubType: cpu_subtype_t)
/// Encodes this value into the given encoder.
///
/// If the value fails to encode anything, `encoder` will encode an empty
/// keyed container in its place.
///
/// This function throws an error if any values are invalid for the given
/// encoder's format.
///
/// - Parameter encoder: The encoder to write data to.
public func encode(to encoder: any Encoder) throws
/// Creates a new instance by decoding from the given decoder.
///
/// This initializer throws an error if reading from the decoder fails, or
/// if the data read is corrupted or otherwise invalid.
///
/// - Parameter decoder: The decoder to read data from.
public init(from decoder: any Decoder) throws
}