/// <summary> /// Get AuxBlock list. /// </summary> /// <returns>A list contains AuxBlocks.</returns> public List <AuxBlock> GetAuxBlockList() { List <AuxBlock> auxBlocks = null; if (this.auxBytes != null) { auxBlocks = new List <AuxBlock>(); using (MemoryStream stream = new MemoryStream(this.auxBytes, false)) { stream.Position = 0; while (stream.Position < stream.Length) { AuxBlock block = new AuxBlock(); block.Deserialize(stream, -1); auxBlocks.Add(block); } } } return(auxBlocks); }
/// <summary> /// Get AuxBlock list. /// </summary> /// <returns>A list contains AuxBlocks.</returns> public List<AuxBlock> GetAuxBlockList() { List<AuxBlock> auxBlocks = null; if (this.auxBytes != null) { auxBlocks = new List<AuxBlock>(); using (MemoryStream stream = new MemoryStream(this.auxBytes, false)) { stream.Position = 0; while (stream.Position < stream.Length) { AuxBlock block = new AuxBlock(); block.Deserialize(stream, -1); auxBlocks.Add(block); } } } return auxBlocks; }