internal static void SkipHeader(AbstractBufferedReader reader) { var magic = reader.ReadByteArrayRaw(MagicStartOfFile.Length); var withGuid = BitArrayManipulation.CompareByteArray(magic, magic.Length, MagicStartOfFileWithGuid, MagicStartOfFileWithGuid.Length) == 0; if (withGuid) reader.SkipGuid(); }