public CrakenObject(Craken _parent, string _name, object _data) { ivirtual = false; ilocal = false; parent = _parent; name = _name; ndata = _data; type = ndata.GetType(); }
public CrakenObject(Craken _parent, string _name, byte[] _data) { ivirtual = true; ilocal = false; parent = _parent; name = _name; data = _data; type = data.GetType(); }
public CrakenString(Craken _parent, string _name, int size) : base(_parent, _name, new string(char.MinValue, size)) { }
public CrakenBool(Craken _parent, string _name, bool _data) : base(_parent, _name, new byte[] { ((byte)(_data ? 1 : 0)) }) { }
public CrakenSByte(Craken _parent, string _name, sbyte _data) : base(_parent, _name, new sbyte[] { _data }) { }
public CrakenChar(Craken _parent, string _name, char _data) : base(_parent, _name, DataHelper.CharsToBytes(new char[] { _data })) { }
public CrakenUInt32(Craken _parent, string _name, UInt32 _data) : base(_parent, _name, BitConverter.GetBytes(_data)) { }
public CrakenInt16(Craken _parent, string _name, int _data) : base(_parent, _name, BitConverter.GetBytes(_data)) { }