Example #1
0
        private void parseBody()
        {
            pageDescriptions = new Dictionary <int, PfsPageByte>();
            int pageID = Header.Pointer.PageID == 1 ? 0 : Header.Pointer.PageID;

            // Skip first 4
            // TODO: Should treat this as the record it is, instead of misusing RawBody
            foreach (byte pageByte in RawBody.Skip(4).Take(8088))
            {
                var pfsPageDescription = new PfsPageByte(pageByte, pageID);
                pageDescriptions.Add(pageID++, pfsPageDescription);
            }
        }
Example #2
0
        private void parseBody()
        {
            pageDescriptions = new Dictionary<int, PfsPageByte>();
            int pageID = Header.Pointer.PageID == 1 ? 0 : Header.Pointer.PageID;

            // Skip first 4
            // TODO: Should treat this as the record it is, instead of misusing RawBody
            foreach(byte pageByte in RawBody.Skip(4).Take(8088))
            {
                var pfsPageDescription = new PfsPageByte(pageByte, pageID);
                pageDescriptions.Add(pageID++, pfsPageDescription);
            }
        }