public DSString(StackValue[] values, Heap heap) : base(values, heap) { MetaData = new MetaData { type = (int)PrimitiveType.String }; }
public DSObject(StackValue[] values, Heap heap) : base(values, heap) { MetaData = new MetaData { type = (int)PrimitiveType.Pointer }; }
public DSString(int size, Heap heap) : base(size, heap) { MetaData = new MetaData { type = (int)PrimitiveType.String }; }
/// <summary> /// Create an array and populuate with input values /// </summary> /// <param name="values"></param> /// <param name="heap"></param> public DSArray(StackValue[] values, Heap heap) : base(values, heap) { Dict = new Dictionary<StackValue, StackValue>(); MetaData = new MetaData { type = (int)PrimitiveType.Array }; }
public DSObject(int size, Heap heap) : base(size, heap) { MetaData = new MetaData { type = (int)PrimitiveType.Pointer }; }
public static StackValue BuildPointer(Int64 data, MetaData mdata) { StackValue value = new StackValue(); value.optype = AddressType.Pointer; value.opdata = data; value.metaData = mdata; return value; }
public static StackValue BulildInvalid() { StackValue value = new StackValue(); value.optype = AddressType.Invalid; value.opdata = -1; MetaData mdata = new MetaData(); mdata.type = (int)PrimitiveType.kInvalidType; value.metaData = mdata; return value; }
public static StackValue BuildChar(char ch) { StackValue value = new StackValue(); value.optype = AddressType.Char; value.opdata = Convert.ToInt64(ch); MetaData mdata = new MetaData(); mdata.type = (int)PrimitiveType.kTypeChar; value.metaData = mdata; return value; }
public static StackValue BuildNull() { StackValue value = new StackValue(); value.optype = AddressType.Null; value.opdata = 0; MetaData mdata = new MetaData(); mdata.type = (int)PrimitiveType.kTypeNull; value.metaData = mdata; return value; }
public static StackValue BuildDouble(double data) { StackValue value = new StackValue(); value.optype = AddressType.Double; value.opdata_d = data; MetaData mdata = new MetaData(); mdata.type = (int)PrimitiveType.kTypeDouble; value.metaData = mdata; return value; }
public static StackValue BuildInt(Int64 data) { StackValue value = new StackValue(); value.optype = AddressType.Int; value.opdata = data; MetaData mdata = new MetaData(); mdata.type = (int)PrimitiveType.kTypeInt; value.metaData = mdata; return value; }
public static StackValue BuildDouble(double data) { StackValue value = new StackValue(); value.optype = AddressType.Double; value.opdata = BitConverter.DoubleToInt64Bits(data); MetaData mdata = new MetaData(); mdata.type = (int)PrimitiveType.Double; value.metaData = mdata; return value; }
public DSArray(int size, Heap heap) : base(size, heap) { Dict = new Dictionary<StackValue, StackValue>(); MetaData = new MetaData { type = (int)PrimitiveType.kTypeArray }; }
public static StackValue BuildChar(char ch) { StackValue value = new ProtoCore.DSASM.StackValue(); value.optype = ProtoCore.DSASM.AddressType.Char; value.opdata = ProtoCore.Utils.EncodingUtils.ConvertCharacterToInt64(ch); value.opdata_d = value.opdata; MetaData mdata = new MetaData(); mdata.type = (int)PrimitiveType.kTypeChar; value.metaData = mdata; return value; }