public VariableEntry(Types.TIVar var, string name, bool archived = false) { variable = var; byte[] tname = Encoding.ASCII.GetBytes(name); for (int i = 0; i < 8; i++) { if (i < name.Length) { this.name[i] = tname[i]; } else { this.name[i] = 0; } } isArchived = archived; }
public VariableEntry(Types.TIVar var, bool archived = false) { variable = var; name = new byte[] { 0, 0, 0, 0, 0, 0, 0 }; isArchived = archived; }