public void Write(BinaryWriter wr) { if (_list != null) using (var ms = new MemoryStream()) using (var sa = new NulComplexStreamedArray(ms, SizeEncoding.B4, true, _list, true, false)) wr.Write(ms.GetBuffer(), 0, (int)ms.Length); }
public void Read(BinaryReader rd) { using (var sa = new NulComplexStreamedArray(rd.BaseStream, true, true)) _list = sa.ToList(); }
public void Read(BinaryReader rd) { using (var sa = new NulComplexStreamedArray(rd.BaseStream, true, false)) _array = sa.ToArray(); }