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