Example #1
0
        public object DeserializeArray(teStructuredData data, STUField_Info field)
        {
            BinaryReader dynData = data.DynData;
            long         offset  = dynData.ReadInt64();

            Enums.SDAM mutability = (Enums.SDAM)dynData.ReadInt64(); // SDAM_NONE = 0, SDAM_MUTABLE = 1, SDAM_IMMUTABLE = 2
            // Debug.Assert(Mutability == teEnums.SDAM.IMMUTABLE, "teString.unk != 2 (not immutable)");

            long pos = dynData.BaseStream.Position;

            dynData.Seek(offset);

            Deserialize(data, dynData, out string value);
            dynData.Seek(pos);

            return(new teString(value, mutability));
        }
Example #2
0
 public teString(string value, Enums.SDAM mutability)
 {
     Value      = value;
     Mutability = mutability;
 }
Example #3
0
 public teString(string value)
 {
     Value      = value;
     Mutability = Enums.SDAM.NONE;
 }