Ejemplo n.º 1
0
 public override void Write(ByteWriter writer)
 {
     writer.WriteVar(blockHeaders.Count);
     foreach (var header in blockHeaders)
     {
         writer.Write(header.ToBytes());
         writer.WriteVar(0);
     }
 }
Ejemplo n.º 2
0
 public override void Write(ByteWriter writer)
 {
     writer.WriteVar(addresses.Count);
     foreach (var address in addresses)
     {
         writer.Write(address);
     }
 }
Ejemplo n.º 3
0
 public override void Write(ByteWriter writer)
 {
     writer.WriteVar(items.Count);
     foreach (var item in items)
     {
         writer.Write((int)item.BlockDataType, 4);
         writer.Write(item.Hash);
     }
 }