BSG_KSCrashReportWriter

Objective-C

struct BSG_KSCrashReportWriter {}

Swift

struct BSG_KSCrashReportWriter

Encapsulates report writing functionality.

  • Add a boolean element to the report.

    Declaration

    Objective-C

    void (*addBooleanElement)(const struct BSG_KSCrashReportWriter *, const char *,
                              _Bool)

    Swift

    var addBooleanElement: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?, Bool) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

    value

    The value to add.

  • Add a floating point element to the report.

    Declaration

    Objective-C

    void (*addFloatingPointElement)(const struct BSG_KSCrashReportWriter *,
                                    const char *, double)

    Swift

    var addFloatingPointElement: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?, Double) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

    value

    The value to add.

  • Add an integer element to the report.

    Declaration

    Objective-C

    void (*addIntegerElement)(const struct BSG_KSCrashReportWriter *, const char *,
                              long long)

    Swift

    var addIntegerElement: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?, Int64) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

    value

    The value to add.

  • Add an unsigned integer element to the report.

    Declaration

    Objective-C

    void (*addUIntegerElement)(const struct BSG_KSCrashReportWriter *, const char *,
                               unsigned long long)

    Swift

    var addUIntegerElement: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?, UInt64) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

    value

    The value to add.

  • Add a string element to the report.

    Declaration

    Objective-C

    void (*addStringElement)(const struct BSG_KSCrashReportWriter *, const char *,
                             const char *)

    Swift

    var addStringElement: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?, UnsafePointer<CChar>?) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

    value

    The value to add.

  • Add a string element from a text file to the report.

    Declaration

    Objective-C

    void (*addTextFileElement)(const struct BSG_KSCrashReportWriter *, const char *,
                               const char *)

    Swift

    var addTextFileElement: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?, UnsafePointer<CChar>?) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

    filePath

    The path to the file containing the value to add.

  • Add a JSON element from a text file to the report.

    Declaration

    Objective-C

    void (*addJSONFileElement)(const struct BSG_KSCrashReportWriter *, const char *,
                               const char *)

    Swift

    var addJSONFileElement: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?, UnsafePointer<CChar>?) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

    filePath

    The path to the file containing the value to add.

  • Add a hex encoded data element to the report.

    Declaration

    Objective-C

    void (*addDataElement)(const struct BSG_KSCrashReportWriter *, const char *,
                           const char *, const size_t)

    Swift

    var addDataElement: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?, UnsafePointer<CChar>?, Int) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

    value

    A pointer to the binary data.

    length

    The length of the data.

  • Begin writing a hex encoded data element to the report.

    Declaration

    Objective-C

    void (*beginDataElement)(const struct BSG_KSCrashReportWriter *, const char *)

    Swift

    var beginDataElement: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

  • Append hex encoded data to the current data element in the report.

    Declaration

    Objective-C

    void (*appendDataElement)(const struct BSG_KSCrashReportWriter *, const char *,
                              const size_t)

    Swift

    var appendDataElement: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?, Int) -> Void)!

    Parameters

    writer

    This writer.

    value

    A pointer to the binary data.

    length

    The length of the data.

  • Complete writing a hex encoded data element to the report.

    Declaration

    Objective-C

    void (*endDataElement)(const struct BSG_KSCrashReportWriter *)

    Swift

    var endDataElement: ((UnsafePointer<BSG_KSCrashReportWriter>?) -> Void)!

    Parameters

    writer

    This writer.

  • Add a UUID element to the report.

    Declaration

    Objective-C

    void (*addUUIDElement)(const struct BSG_KSCrashReportWriter *, const char *,
                           const unsigned char *)

    Swift

    var addUUIDElement: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?, UnsafePointer<UInt8>?) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

    value

    A pointer to the binary UUID data.

  • Add a preformatted JSON element to the report.

    Declaration

    Objective-C

    void (*addJSONElement)(const struct BSG_KSCrashReportWriter *, const char *,
                           const char *)

    Swift

    var addJSONElement: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?, UnsafePointer<CChar>?) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

    jsonElement

    A pointer to the JSON data.

  • Begin a new object container.

    Declaration

    Objective-C

    void (*beginObject)(const struct BSG_KSCrashReportWriter *, const char *)

    Swift

    var beginObject: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

  • Begin a new array container.

    Declaration

    Objective-C

    void (*beginArray)(const struct BSG_KSCrashReportWriter *, const char *)

    Swift

    var beginArray: ((UnsafePointer<BSG_KSCrashReportWriter>?, UnsafePointer<CChar>?) -> Void)!

    Parameters

    writer

    This writer.

    name

    The name to give this element.

  • Leave the current container, returning to the next higher level container.

    Declaration

    Objective-C

    void (*endContainer)(const struct BSG_KSCrashReportWriter *)

    Swift

    var endContainer: ((UnsafePointer<BSG_KSCrashReportWriter>?) -> Void)!

    Parameters

    writer

    This writer.

  • Internal contextual data for the writer

    Declaration

    Objective-C

    void *context

    Swift

    var context: UnsafeMutableRawPointer!