public void WriteStruct(INdrStructure structure) { bool conformant = false; if (structure is INdrConformantStructure conformant_structure) { conformant = SetupConformance(conformant_structure.GetConformantDimensions()); System.Diagnostics.Debug.Assert(_conformance_position.HasValue); } using (var queue = _deferred_writes.Push()) { WriteStructInternal(structure); } if (conformant) { System.Diagnostics.Debug.Assert(!_conformance_position.HasValue); } }
public T[] ReadFixedStructArray <T>(int actual_count) where T : INdrStructure, new() { using (var queue = _deferred_reads.Push()) { return(ReadFixedArray(ReadStruct <T>, actual_count)); } }