public void ReadFromStream(Unity.SnapshotDebugger.Buffer buffer)
 {
     segments = buffer.ReadNativeArray <HermitCurve>(out allocator);
 }
 public void WriteToStream(Unity.SnapshotDebugger.Buffer buffer)
 {
     buffer.WriteNativeArray(segments, allocator);
 }