Example #1
0
        public TesBytes GetBytes(long count, long offset = 0, bool next = true)
        {
            if (len < pos + count + offset)
            {
                throw new Exception();
            }

            TesBytes result = Read(offset + count, next);

            if (0 < offset)
            {
                result = result.GetOffset(offset, count);
            }

            if (next)
            {
                pos += count;
            }

            return(result);
        }