void PatchRawFatSection(ByteBuffer buffer, MetadataBuilder metadata)
        {
            position--;
            var length = ReadInt32();
            buffer.WriteInt32(length);

            var count = (length >> 8) / 24;

            PatchRawExceptionHandlers(buffer, metadata, count, true);
        }
        void PatchRawFatMethod(ByteBuffer buffer, MethodSymbols symbols, CodeWriter writer, out MetadataToken local_var_token)
        {
            var flags = ReadUInt16();
            buffer.WriteUInt16(flags);
            buffer.WriteUInt16(ReadUInt16());
            symbols.code_size = ReadInt32();
            buffer.WriteInt32(symbols.code_size);
            local_var_token = ReadToken();

            if (local_var_token.RID > 0)
            {
                var variables = symbols.variables = ReadVariables(local_var_token);
                buffer.WriteUInt32(variables != null
                    ? writer.GetStandAloneSignature(symbols.variables).ToUInt32()
                    : 0);
            }
            else
                buffer.WriteUInt32(0);

            PatchRawCode(buffer, symbols.code_size, writer);

            if ((flags & 0x8) != 0)
                PatchRawSection(buffer, writer.metadata);
        }