Bio.IO.BAM.BAMFormatter.GetEOFBlock C# (CSharp) Method

GetEOFBlock() private static method

Gets empty block.
private static GetEOFBlock ( ) : byte[]
return byte[]
        private static byte[] GetEOFBlock()
        {
            // EOF block size will be 28 bytes.
            // Here it is set to 20 remaining bytes will 
            // be taken care by "GetBGZFStructure" method.
            const int BlockSize = 20;

            byte[] block = new byte[BlockSize];
            // represents no data.
            // got this value by reading Empty block from BAM file.
            block[10] = 3;
            using (MemoryStream memStream = new MemoryStream(BlockSize))
            {
                memStream.Write(block, 0, BlockSize);
                memStream.Seek(0, SeekOrigin.Begin);
                return GetBGZFStructure(memStream);
            }
        }