private void SaveVariable(LC4Variable variable) { WriteBytes(new Byte[] { 1, 0, 1, 5, 0, 2, 0 }); WriteString(variable.Name); WriteString(variable.Value); WriteBytes(new Byte[] { 1, 0, 0 }); }
private LC4Variable LoadVariable() { LC4Variable result = new LC4Variable(); Byte[] pad; pad = ReadBytes(7); result.Name = ReadString(); result.Value = ReadString(); pad = ReadBytes(3); return(result); }