AsmResolver.BinaryStreamReaderExtensions.Align C# (CSharp) Method

Align() public static method

Aligns the reader to a specified boundary.
public static Align ( this reader, int align ) : void
reader this The reader to align.
align int The boundary to use.
return void
        public static void Align(this IBinaryStreamReader reader, int align)
        {
            align--;
            reader.ReadBytes((((int)reader.Position + align) & ~align) - (int)reader.Position);
        }