Esempio n. 1
0
        public byte[] Debug_LookForDataAfterFixedStr(int size)
        {
            var dataCpy = new ByteChunk(ReadBytes(size));

            Index -= size;

            var str      = dataCpy.ReadFixedLength(size);
            var strClean = Util.SanatizeFixedString(str);

            dataCpy.Reset();
            dataCpy.Index = strClean.Length;
            var bytesAfterClean = dataCpy.ReadBytes(dataCpy.BytesLeft);
            var nonZeroBytes    = bytesAfterClean.Count(x => x != 0);

            if (nonZeroBytes != 0)
            {
                return(bytesAfterClean);
            }

            return(null);
        }