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
writerThis writer.
nameThe name to give this element.
valueThe 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
writerThis writer.
nameThe name to give this element.
valueThe 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
writerThis writer.
nameThe name to give this element.
valueThe 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
writerThis writer.
nameThe name to give this element.
valueThe 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
writerThis writer.
nameThe name to give this element.
valueThe 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
writerThis writer.
nameThe name to give this element.
filePathThe 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
writerThis writer.
nameThe name to give this element.
filePathThe 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
writerThis writer.
nameThe name to give this element.
valueA pointer to the binary data.
lengthThe 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
writerThis writer.
nameThe 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
writerThis writer.
valueA pointer to the binary data.
lengthThe 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
writerThis 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
writerThis writer.
nameThe name to give this element.
valueA 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
writerThis writer.
nameThe name to give this element.
jsonElementA 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
writerThis writer.
nameThe 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
writerThis writer.
nameThe 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
writerThis writer.
-
Internal contextual data for the writer
Declaration
Objective-C
void *contextSwift
var context: UnsafeMutableRawPointer!
View on GitHub
Install in Dash
BSG_KSCrashReportWriter Structure Reference