TestimoX

API Reference

Class

BenchmarkPackSerializer

Namespace TestimoX.Benchmarks
Assembly TestimoX
Modifiers static

Reads, writes, and verifies native TestimoX benchmark packs.

Inheritance

  • Object
  • BenchmarkPackSerializer

Methods

public static String CalculateHash(BenchmarkPack pack) #
Returns: String

Calculates the canonical SHA-256 hash while excluding the mutable hash property.

Parameters

pack TestimoX.Benchmarks.BenchmarkPack requiredposition: 0
public static BenchmarkPack Deserialize(String json, Boolean verifyHash = true, String sourceName = null) #
Returns: BenchmarkPack

Deserializes and validates a benchmark pack from JSON.

Parameters

json System.String requiredposition: 0
verifyHash System.Boolean = true optionalposition: 1
sourceName System.String = null optionalposition: 2
public static BenchmarkPack Load(String path, Boolean verifyHash = true) #
Returns: BenchmarkPack

Loads and validates a benchmark pack from disk.

Parameters

path System.String requiredposition: 0
verifyHash System.Boolean = true optionalposition: 1
public static Void Save(BenchmarkPack pack, String path) #
Returns: Void

Serializes a pack, updates its content hash, and writes it atomically.

Parameters

pack TestimoX.Benchmarks.BenchmarkPack requiredposition: 0
path System.String requiredposition: 1
public static String Serialize(BenchmarkPack pack, Boolean indented = true) #
Returns: String

Serializes a validated benchmark pack to JSON after refreshing its integrity hash.

Parameters

pack TestimoX.Benchmarks.BenchmarkPack requiredposition: 0
indented System.Boolean = true optionalposition: 1