API Reference
Class
BenchmarkPackSerializer
Reads, writes, and verifies native TestimoX benchmark packs.
Inheritance
- Object
- BenchmarkPackSerializer
Methods
public static String CalculateHash(BenchmarkPack pack) #Returns:
StringCalculates the canonical SHA-256 hash while excluding the mutable hash property.
Parameters
- pack TestimoX.Benchmarks.BenchmarkPack
public static BenchmarkPack Deserialize(String json, Boolean verifyHash = true, String sourceName = null) #Returns:
BenchmarkPackDeserializes and validates a benchmark pack from JSON.
Parameters
- json System.String
- verifyHash System.Boolean = true
- sourceName System.String = null
public static BenchmarkPack Load(String path, Boolean verifyHash = true) #Returns:
BenchmarkPackLoads and validates a benchmark pack from disk.
Parameters
- path System.String
- verifyHash System.Boolean = true
public static Void Save(BenchmarkPack pack, String path) #Returns:
VoidSerializes a pack, updates its content hash, and writes it atomically.
Parameters
- pack TestimoX.Benchmarks.BenchmarkPack
- path System.String
public static String Serialize(BenchmarkPack pack, Boolean indented = true) #Returns:
StringSerializes a validated benchmark pack to JSON after refreshing its integrity hash.
Parameters
- pack TestimoX.Benchmarks.BenchmarkPack
- indented System.Boolean = true