Exemplo n.º 1
0
 public void Write(BinaryWriter wr)
 {
     using (var ms = new MemoryStream())
         using (var sc = new NulInt32StreamedCollection(ms, SizeEncoding.B4, true, _list, true, false))
             wr.Write(ms.GetBuffer(), 0, (int)ms.Length);
 }
Exemplo n.º 2
0
 public void Read(BinaryReader rd)
 {
     using (var sc = new NulInt32StreamedCollection(rd.BaseStream, true, false))
         _list = sc.ToList();
 }