MtxVecJsonSerializer Class

Source: MtxVecBase.cs · Assembly: Dew.Math
TMtxVecBase}MtxVecJsonSerializer

public class MtxVecJsonSerializer : TMtxVecBase}

Custom JsonConverter for TMtxVecBase and its known descendants (TMtx, TVec, TMtxInt, TVecInt). Stores instances as Base64-encoded byte[] using TMtxVecBase.GetObjectToByteArray/SetObjectFromByteArray. AOT/linker safe for Android/iOS via explicit factory map; cross-platform on Windows/Linux/macOS.

Methods

NameDescription
CanConvertIndicates whether the converter can handle the specified type.
ReadDeserializes a TMtxVecBase-derived instance by reading a Base64-encoded byte[] and restoring state.
WriteSerializes a TMtxVecBase by writing its binary representation as a Base64-encoded byte[].