Beispiel #1
0
 public Val32 AddData(string category, string name, Val32 type, int size, int len, Block32 data)
 {
     var db = new DataBlock();
     db.Block.AddVal32(type);
     db.Block.AddInt(1);
     db.Block.AddInt(size);
     db.Block.AddInt(len);
     var offset = db.Block.Length;
     db.Block.AddBlock(data);
     Module.Data.AddDataBlock(category, name, db);
     return Val32.New2(db.Address, Val32.New(offset));
 }
Beispiel #2
0
 public static DataBlock New(byte[] d)
 {
     var ret = new DataBlock();
     ret.block.AddBytes(d);
     return ret;
 }
Beispiel #3
0
 public void AddDataBlock(string category, string name, DataBlock data)
 {
     var ctg = GetCategory(category);
     if (!ctg.ContainsKey(name)) ctg.Add(name, data);
 }